Multi column sort with column_default_sort
See original GitHub issueCurrently Flask-Admin doesn’t support sorting on multiple columns. Could you implement this?
column_default_sort = [(Model1.colA, True), ('colB', False)]
and
column_default_sort = [Model1.colA, 'colB']
Issue Analytics
- State:
- Created 9 years ago
- Reactions:8
- Comments:16 (4 by maintainers)
Top Results From Across the Web
Default Sort Order of Multiple Columns in a custom table
Solved: Can I set the default sort order for multiple columns in a custom table? I want to make it visible to everyone,...
Read more >Sort data in a table - Microsoft Support
Sorting is one of the most common tools for data management. In Excel, you can sort your table by one or more columns,...
Read more >Row Sorting: Core Feature of our Datagrid - AG Grid
It is possible to sort by multiple columns. The default action for multiple column sorting is for the user to hold down shift...
Read more >PrimeNg <p-table> Multi Sort with MetaKey default sort (e.g. ...
I have a <p-table> table with sortMode="multiple" . I would like to specify two columns as the default sort when the page is...
Read more >Solved: Sorting a table using multiple columns
If you want to sort a table by multiple columns, the only option you have is to have a concatenated column with the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
While #1590 is not merged, this will do the trick for sqla model views:
Thanks @jbochi. Formatting for those of you implementing this fix so you don’t get hung up for an hour like I did.