mleibman / SlickGrid

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

Composite sorting on Dataview #1167

Open thimothy26 opened 6 years ago

thimothy26 commented 6 years ago

Hi , I want to do a composite sorting on specified columns using Slick.Dataview. Could you please guide me

6pac commented 6 years ago

You should ask usage questions on StackOverflow. See: http://6pac.github.io/SlickGrid/examples/example-multi-column-sort.html (note that this repo is unmaintained. See https://github.com/6pac/SlickGrid)

thimothy26 commented 6 years ago

Thanks,

I am aware of the above solution ,my questions is ,how to have composit sorting in dataview .

Code dataView.sort(comparer, args.sortAsc);

6pac commented 6 years ago

You write the comparer to sort on multiple columns. Please ask this question on StackOverflow.