(I have asked this question previously too here but has been marked duplicated ,but that answer doesnot meet my requirement)
I have an array a=["Apple","Mango","apple","mango"]
.If I use the a.sort()
the result is
["Apple", "Mango", "apple", "mango"]
But What i desire is
Apple,apple,Mango,mango
Remember It is not case inSensitive sort as whatever the order of given element in the array be ,the output should be as
Apple apple Mango mango Means the capital letter should precedes the smaller one