mleibman / SlickGrid

A lightning fast JavaScript grid/spreadsheet
http://wiki.github.com/mleibman/SlickGrid
MIT License
6.81k stars 1.97k forks source link

Sorting issue in Grouping SlickGrid #921

Open ManasaReddy4 opened 10 years ago

ManasaReddy4 commented 10 years ago

Here is the code I am using for a grouping slick grid. The issue is sorting does not work properly as posted in the examples section. As per the example, Slickgrid prevents sorting for group titles. This is the behaviour which I need. But in my version when you sort the columns, the groups get sorted also.

Aashishkmr commented 10 years ago

you need to use the comparer function . first sort the column by which u r grouping then by other columns. See here: http://stackoverflow.com/questions/15659653/slickgrid-exclude-slick-group-group-header-row-when-sorting