Hi All,
While trying to Practice Exercise no. 35 for Built-in array methods, I see a rather weird phenomenon. In the example given, there is a typo where it introduces some extra spaces for K, i.e. it introduces " K " as an element to an array instead of “K”. The exercise asks for sorting the alphabets.
Interestingly, I see that " K " is evaluated as less than “K” or even “A”.
And hence after I implement the sort function of the array of all the alphabets, I am continuing to see " K " starting earlier than “A”.
Can anybody throw some more light on this?
Cheers’
– Rays
I have tried with trimming the space but still the result does not change.