Fixed sorting, broken preferences

There was an issue where preferences were saving to the wrong file. I would have simply wrote
a class to migrate this data, but since this app is less then a week in beta. I am not going to
people with issues can wipe the app data.