Replies: 1 comment 3 replies
-
I wonder whether that's really an issue. Say I have a table with IDs, names and ages. First I decide to sort by ages. Then I decide to sort by names. In the current implementation, at that point the table will be sorted by There is another reason why you may not want to unsort columns. Most columns will not be unique. If you only sort by non-unique columns, the order will be non-deterministic. Since the table will commonly be used in combination with pagination, this can result in unexpected results after going to the next or previous page. To make the order deterministic, you can set a default order that includes a unique column. In the case of the pet table, you could set the default order to |
Beta Was this translation helpful? Give feedback.
-
Hi Mathias,
I've just noticed that the order is not set but actually extended (via
push_order/2
). So when I have two fields A and B I can order by, I can do the the following:But it's not possible to "unselect" an order criteria when it's enabled. Or just order by another field when one field order is already set. Would be nice to adjust that. What do you think?
However, I guess it would be possible to workaround that when handling single events.
Best
Mathias
Beta Was this translation helpful? Give feedback.
All reactions