Ngx-datatable: multi sort column for ordering

Created on 27 Mar 2017  路  2Comments  路  Source: swimlane/ngx-datatable

please, it is possible add :

multi sort column for ordering

look this :
https://datatables.net/examples/basic_init/multi_col_sort.html
(SHIFT + click in header column1) + (SHIFT + click in header column2) = multi sort

same of MySQL : ORDER BY column1 DESC, column2 ASC

it is possible add for client-side and server-side
And methods / functions for: when the columns are not in display, or for external buttons

thank you very much

Investigate

Most helpful comment

With sortType set as multi is possible to do multi sort - with incremental clicks (see documentain) . But in this mode if we have, by example, 4 columns for ordering isn't easy to reset ordering.

I agree that it will be great if a mixed mode exists:

One click - replace the current selection with the next selection
Shift + click - add current selection to array (or change direction if already selected)

Thanks.

All 2 comments

This would be a very useful addition as you already support multi-column sort for default filters and even the (sort) event is actually returning an array of sorts.

With sortType set as multi is possible to do multi sort - with incremental clicks (see documentain) . But in this mode if we have, by example, 4 columns for ordering isn't easy to reset ordering.

I agree that it will be great if a mixed mode exists:

One click - replace the current selection with the next selection
Shift + click - add current selection to array (or change direction if already selected)

Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JanStock picture JanStock  路  3Comments

jguttman94 picture jguttman94  路  3Comments

id1945 picture id1945  路  3Comments

Matthi0uw picture Matthi0uw  路  3Comments

ExTheSea picture ExTheSea  路  3Comments