Natural sort in datatable

Hello, is it possible to do a “natural” sort in datatable ?

I have a custom sort for a specific column (sort:myCustomSort) but I don’t know how to do a natural sort , I tried javascript function “localCompare” without success .

Any ideas ?

up ?

Hello @romain ,
For example, the implementation can look as follows:

webix.DataStore.prototype.sorting.as.sortLocalCompare = function(a,b){
  return a.toString().localeCompare(b.toString(), undefined, {numeric: true});
}

Example: Code Snippet

Perfect thanks