Need to perform natural sorting using javaScript keeping uppercase before lowercase, I have created plunker for detailed understanding.
I have used natural sorter function answered in the previous post given by kennebec (Javascript : natural sort of alphanumerical strings)
Plunker: plnkr.co/edit/Ls2jRRpHJcOhHhkFl8dC?p=preview
function compare(x, y) {
//naturalSorter should return job column sorting as A (uppercase), a(lowercase), A13(alphanum), A13(alphanum), A14(alphanum)
return naturalSorter(x, y);
}
Any help would be appreciated.
Thanks!