fixes for sorting
Merge pull request #104 from apatel/master

fixes for sorting