I pull returns and the corresponding dates from a database using
TempW = sqlrequest(quesrystring, databasename, etc , , , )

TempW becomes 1 to 4, 1 to 55
Tempw(i, 1) is a date
Tempw(i, 2) is a return.

I need to sort the array rows by date.

Please let me know if that helps.
Thank you

Matt