synapse-admin icon indicating copy to clipboard operation
synapse-admin copied to clipboard

Sorting any tables should use stable_sort

Open Samonitari opened this issue 3 years ago • 0 comments

Thanks for the work!

I am not versed in JavaScript, but I guess there is a stable sort in the basic libs. Any table UI that provides sorting by columns should use stable_sort (in any application, TBH).

Example scenario - I'd like to see the most recent-versioned rooms that are encrypted. To do this you (order is not relevant in this case):

  1. First sort by room versions
  2. Then sort by E2EE status

Current result: rooms are listed by E2EE status, but room version ordering in the encrypted results on top are not kept.

Samonitari avatar Feb 23 '22 14:02 Samonitari