Fix a couple of bugs in sort dialogue
Merge branch 'master' of https://github.com/CMPUT301F14T02/TheBrogrammers