fix some bug in sort function
Merge branch 'master' of https://github.com/cs2103aug2014-w09-2j/main
change Exception
Merge branch 'master' of https://github.com/cs2103aug2014-w09-2j/main