Fixes Issue 9457 - isSorted(string) does not work.
Merge pull request #1136 from AndrejMitrovic/Fix9457

Issue 9457 - isSorted(string) does not work.