Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, to sort a second column after sorting a first one, just hold down the “Shift” key while clicking on the sort arrow of the second column’s header cell.

    Regards,
    Tobias

    Thread Starter Thomas VanSlambrouck

    (@xplicitcoding)

    Tobias,

    I was referring more from an “onload” stand point. Below is what I have that auto sorts based on the first column.

    [table id=1 row_order=sort row_order_sort_column=A row_order_sort_direction=ASC /]

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    ah, thanks for the clarification. Unfortunately, I’ll have to disappoint you here then. Sorting by two columns is not possible with the Table Row Order Extension ??

    You would have to fall back to the JS sorting, but you can also trigger that automatically, on load. For that, please add this to the “Custom Commands” text field on the “Edit” screen of the table:

    "order": [ [ 0, "asc" ], [ 1, "asc" ] ]
    

    (Note that counting of columns starts with 0 in this code.)

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sort by Column A, then Column B’ is closed to new replies.