Today I found a strange for me implementation of strings sorting:
[\'Data\', \'Chata\', \'Clata\'].sort(function(a, b) { return a > b});
When comparing strings, comparison is done letter by letter. So c has lower symbol value than d (Check this table)
c
d