GigaGrid icon indicating copy to clipboard operation
GigaGrid copied to clipboard

Alternative sort algorithm

Open aferrandi opened this issue 7 years ago • 2 comments

How can I use a special sort function (not lexicographical) on one column, so that when the user clicks on the header of that column, it gets sorted accordingly to that function? I tried to use customSortFn but it does not seem to be used when clicking on the header.

aferrandi avatar Sep 15 '16 15:09 aferrandi

Thanks for bring up this issue. To confirm: customSortFn does work when applying sorts initially? Just not when sorting via the header ?

If so that is definitely a bug that need to be patched

Also, the GitHub version of GigaGrid is fairly out of date, development on a private branch have made numerous enhancements that I'll try to sync over sometime in the future.

erfangc avatar Sep 17 '16 14:09 erfangc

Ah, it is ok. I created a column called sort containing a string build to correctly sort the lines alphabetically and it went ok. The only problem is that the column is visible.

aferrandi avatar Oct 28 '16 13:10 aferrandi