Revert "fix string compare logic"

This reverts commit 844d24f47aa2127d3ac8ca459f7cd7e1a63a3713.
Revert "use makeStringSorter"

This reverts commit 12c6467f72e6349296033a99d99f178059721d47.