Closed piotr-dobrogost closed 5 years ago
We could add an additional configuration input that is just a sorting function, with API e.g.
// returns a number
function(itemA, itemB) {
return itemA.localeCompare(itemB);
}
If you want to put together a PR implementing this I would be happy to merge it in.
We could add an additional configuration input that is just a sorting function, with API e.g.
Sorry, but I don't get the idea.
We support per-column sort comparator functions, so you should be able to just pass in your own implementation. See https://github.com/alalonde/angular-scrollable-table/blob/master/demo/index.html#L44
As
Array.prototype.sort
is not guaranteed to be stable I think the library should guarantee stabilty itself using technique described in this anwser on Array.sort Sorting Stability in Different Browsers question on Stackoverflow.