sort event direction
See original GitHub issueHi,
There is no way to get direction of selected sort. Object returned gives null in direction field. Simple handler:
w2ui.masternodes.on('sort', function(event) {
console.log(event);
});
And output:

Is there any other way to get user sort selection? For example to resort grid after row is modified?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
[Sort] Programatically setting active/direction does not update UI
Bug, feature request, or proposal: I'm programmatically setting the active and direction on matSort, but it's not updating the UI What is ...
Read more >Default sorting in Angular Material - Sort header - Stack Overflow
Hello, if my table implements pagination, how can I ensure that the active and direction parameters are carried over to the next page?...
Read more >Sort header - Angular Material
MatSortHeader. Applies sorting behavior (click to change sort) and styles to an element, including an arrow to display the current sort direction.
Read more >Specifying a Sort Direction - TIBCO Product Documentation
You can specify that items in a list be sorted in either ascending or descending order:
Read more >Implementing Custom Sorting in Columns in JavaScript
A JavaScript tutorial for web developers show how to custom sort ... you can listen to the sort's matSortChange event and re-order your...
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

You can get the latest sorting from
grid.sortData: http://w2ui.com/web/docs/1.5/w2grid.sortDataIt should be relatively easy to return the current sorting in the sort event, thus I suggest you leave the issue open.
Thank You 😃