NPellet / visualizer

Other
43 stars 23 forks source link

custom sorting function in slickgrid #746

Open lpatiny opened 9 years ago

lpatiny commented 9 years ago

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

How this could be define ?

stropitek commented 9 years ago

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.

lpatiny commented 9 years ago

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