A performance improvement to Dictionary.

Dictionary no longer sorts values strictly alphabetically. Now it uses a faster comparison function which still returns -1/+1/0 values for sorting, but favours speed over alphabetical sorting.