See sample: func main() local atst:={{6.06,1,1},{9.92,1,2},{9.90,1,3},{9.34,1,4},{11.38,1,5}} local yy cls ?"before sorting" for yy :=1 to len(atst) ?yy,atst[yy,1],atst[yy,2],atst[yy,3] next asort(atst,{|x,y|x[2]>y[2]}) ?"after sorting" for yy :=1 to len(atst) ?yy,atst[yy,1],atst[yy,2],atst[yy,3] next return nil
The result: 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 Why sorted array not equal to original and what rule asort use in this case? Regards, Alexey Myronenko _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour