Added comments regarding character encoding and sorting