Change sort representation to class

- changed sort representation from String to class
- modified API's accordingly
- replaced string literals with constants
- cleaned up a lot of mess 
Why do you have to keep doing that?
Why token.sort() isn't returning a Sort object already?