Posted on 2012-09-13
I have a requirement of sorting the rows of a html table.
Here the rows of the table are copied into an actual array to maintain a copy.
The original html table consists of the foll rows saved in the index 0,1,2,3
Then i parse only the date value from the row which is in mm/dd/yyyy and also i get the actual row number in which the date occurs which is in the form 0,1,2,3,.. and so on.
The format is as follows:
What i need is that is the actual sorted row number like which in the above case is 3,2,1,0 so that i can arrange the rows using the actual copy saved before.
If i get this order then i can arrange the original data as follows