visualizer icon indicating copy to clipboard operation
visualizer copied to clipboard

custom sorting function in slickgrid

Open lpatiny opened this issue 10 years ago • 2 comments

Would it be possible to specify a custom sorting algorithm for each column of a slick grid module

How this could be define ?

lpatiny avatar Nov 03 '15 06:11 lpatiny

I guess we could have it as an input variable. The variable should be a string that defines a function that will be evaluated. The function should return the usual for sorting(-1,0 or 1). The sorting function could be chosen in the column definition based on the input variable names. Ideally the input variable should have been a function not a string but I don't think that is possible.

stropitek avatar Nov 03 '15 09:11 stropitek

Could it be somewhere in the preferences of the module (like the filter) and an event "sorting" with the name of the column =

lpatiny avatar Nov 03 '15 09:11 lpatiny