Mindaugas Kavaliauskas написав(ла):
Hi,

asort(atst,{|x,y|x[2]>y[2]})

what rule asort use in this case?

Just like always, it uses the 4th parameter of ASORT().


Regards,
Mindaugas
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Yes of cause you are right, i'm not carefully read doc, but result is same with asort(atst,,,{|x,y|x[2]>y[2]})

before sorting
        1          6.06          1          1
        2          9.92          1          2
        3          9.90          1          3
        4          9.34          1          4
        5         11.38         1          5
after sorting
        1          9.90          1          3
        2          6.06          1          1
        3          9.34          1          4
        4          9.92          1          2
        5         11.38         1          5


Regards,
Alexey Myronenko
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to