ditto icon indicating copy to clipboard operation
ditto copied to clipboard

Enhance Ditto UI search table by custom sorting based on configured columns

Open thjaeckle opened this issue 2 years ago • 2 comments

The Ditto Explorer UI currently always sorts based on the thingId (hardcoded in the UI).

It would be very beneficial to be able to sort based on the displayed columns of the table (which can be customized).
That way it would e.g. be possible to sort for the most recently "modified" things (using _modified as descending sort field).

Toggling between ascending/descending would be also required.

A bonus would be to add more than one sort field (the API supports that) - but that is probably hard to implement.

@thfries what do you think about this?

thjaeckle avatar Jun 14 '23 07:06 thjaeckle

oh yes. I also thought about this multiple times 😉but I never tried that. I think to supply the ditto API is very easy, because that was very easy for the other parts, too. I fear the UI part to make the table headers and control buttons work. I always need a lot of research on how this is supported by bootstrap or if other extensions are needed.

Besides that, should be doable and also very valuable!

(btw nice example! I use the modified_1d or modified_1h often for the same reason...)

thfries avatar Jun 14 '23 19:06 thfries

Hi @thjaeckle, pls assign this issue to me. Thanks

thfries avatar Nov 26 '23 09:11 thfries