Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sort array on specific column
Message
From
12/02/2004 11:09:22
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Sort array on specific column
Miscellaneous
Thread ID:
00876693
Message ID:
00876693
Views:
48
If I create an array of files matching the following skeleton:
=ADIR(laDummy,tivansdir+"\POLDATA.*")
and the resulting array contains 3 files like so:
ladummy[1,1] "POLDATA.001"
ladummy[1,2] 8860
ladummy[1,3] {02/12/2004}
ladummy[1,4] "10:57:40"
ladummy[1,5] ".A..."
ladummy[2,1] "POLDATA.AL3"
ladummy[2,2] 1008889
ladummy[2,3] {01/15/2004}
ladummy[2,4] " 9:09:56"
ladummy[2,5] ".A..."
ladummy[3,1] "POLDATA.002"
ladummy[3,2] 8854
ladummy[3,3] {02/12/2004}
ladummy[3,4] "11:10:56"
ladummy[3,5] ".A..."
Now I want to sort the array (or create a new array) listing the results by datetime with the most recent file date first (or by reverse order). How would I do that? I am having no luck today with the ASORT() command...

TIA,

Tracy
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Next
Reply
Map
View

Click here to load this message in the networking platform