I would like to sort an array in JavaScript as asc. After I used sort method, the result is like below.
[ '123, '12', '1A1', '1A', '1a', 'A1', 'A2', 'AB', 'A', 'Ab', 'a1', 'a2', 'aB', 'ab' ]
When I'm using sort Array.Sort() by C#, the result is like below.
{ "12", "123", "1a", "1A", "1A1", "A", "a1", "A1", "a2", "A2", "ab", "aB", "Ab", "AB" }
Actually the C# sort way is what I want, so how to implement it in JavaScript? Has anyone completed this task before? A comparator function is really appreciate.