sorttable bug: set-sort-order

From a user:

Whilst I know I can click on the table header to alternate between an ascending and descending sort I’m wondering if I can force the first click to be a particular sort type.

i.e. If I click on a date field then the default sort could be a descending date sort (most recent to oldest)... I realise I could force this by the inclusion of the row_array.reverse(); line and I could
then click on the date header again to resort in ascending date order.

BUT

If I click on a name field for the first time (after having sorted by another field first) then I’d prefer that to be sorted in ascending order on the first click and then descending on the next.

so…I think I want to set an “initial sort sequence” flag for each column so that if it was not the last field sorted upon then this is the sequence that would be used.

Back to the sorttable bug list

Email me when this bug gets updated: · privacy · powered by ChangeDetection