Added support for sorting strings with localCompare().