I have an strng array.
e.g:
StrArray = ["hook", "hour", "javascript", "nemo", "case"];
I know that if I use StrArray.Sort() it will sorted alphabetical. But I would to like to sort by using this alphabet = "jngmclqskrzfvbwpxdht"
I've searched but I only find people using HashTable to solve it.
Is it possible to do in JS?
list.sort(function(a,b) { return a < b; });. Therefore if you want to customize the ability to sort, you would define the parameters in there.