Default Sort Not Working / Not Documented.
See original GitHub issueI’m submitting a … (check one with “x”)
[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request
[ ] support request => Please do not submit support request here
Current behavior
Default Sorting does not work Expected behavior
Have a way to be able to define which column to sort by at the start.
Reproduction of the problem
http://plnkr.co/edit/TLx2vYlCTLsqcLwvWafd is broken, if you can provide me a different plnkr I will post a repro What is the motivation / use case for changing the behavior?
Please tell us about your environment:
- Table version: 0.7.x
- Angular version: 2.0.x
- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
- Language: [all | TypeScript X.X | ES6/7 | ES5]
Issue Analytics
- State:
- Created 7 years ago
- Comments:24 (2 by maintainers)
Top Results From Across the Web
Material table default sorting does not work - Stack Overflow
I have the following mat-table , but the sorting function is not working.. From what I can tell I have followed the instructions...
Read more >Unable to permanently sort columns within SharePoint ...
I have modified the document library's sort options within SharePoint - however, it does not seem to carry over to Teams.
Read more >Default Sort functionalty not working correctly when on ...
After implementing on-demand loading of data the default column-sort functionality is working inconsistently.
Read more >WooCommerce default sort by price not working | WordPress.org
Hello,. I have a web shop (OceanWP theme) that has default sorting set to price ascending. When I enter the shop, prices are...
Read more >Data Grid - Sorting - MUI X
If null or undefined , the rule will not be applied. Initialize the sort model. Sorting is enabled by default to the user....
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 FreeTop 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
Top GitHub Comments
According to the commit from @marjan-georgiev it looks like its done like this:
<ngx-datatable [sorts]="[{prop: 'name', dir: 'desc'}]">...
@yaotzin68 rather than waiting I did the sort myself with the help of underscore: