Page MenuHomePhabricator

Allow sorting data in the Tabular View by multiple columns
Closed, DeclinedPublic

Description

It could be a nice addition in Dashiki to support data sorting by multiple columns via the interface. I imagine there can be two arrows upwards and downwards next to a column name like ▲▼, clicking on which sorts the data in ascending or descending order by the column name.

Event Timeline

fdans triaged this task as High priority.
fdans added a project: Analytics-Kanban.
fdans moved this task from Incoming to Smart Tools for Better Data on the Analytics board.
Milimetric lowered the priority of this task from High to Medium.
Milimetric removed a project: Analytics-Kanban.
Milimetric subscribed.

This is actually tricky for performance reasons. Lowering priority, please raise back up if this is important or becomes important later.

For future reference: it's possible, but care must be taken when tables are too large. Knockout (the framework we used to build this) is not actively maintained and we'd have to write some custom code.
It seems this binding is a good place to start:

https://github.com/apuchkov/knockout-orderable (live example: http://apuchkov.com/knockout-orderable/examples/basic.html)

The tricky part is that our tables are rendered with a custom binding instead of a plain foreach. This is to support super long tables. These shouldn't really exist and we should paginate, and that's where this starts getting complicated.

Dashiki isn't going to see updates like this anytime soon. A more comprehensive plan will be made after we get into our groove as the new Data Engineering team.