list.js icon indicating copy to clipboard operation
list.js copied to clipboard

Remove Natural Sort only for one column

Open melux opened this issue 8 years ago • 2 comments

Hello everyone,

First, thanks for that great script!

I have some difficulties with one thing. I would like to order one column "accountNumbers" (and just that column) the following way:

  • 1
  • 11
  • 1103
  • 112
  • 2
  • 23
  • 245
  • ...

Looks like Standard sort as explained here, but I really don't see how to achieve that.

Thanks for any help!

melux avatar May 09 '17 19:05 melux

Check out Pull Request #515

You can then add custom sort per valueName by using

var listoptions = { sortHandlers:{ <valueName>: <custom sort function> } }

in the options object on list creation

aherrmann13 avatar May 10 '17 17:05 aherrmann13

This PR never migrated. Any other solution?

nativ69 avatar Sep 19 '23 12:09 nativ69