Fix logic error on generating Task IDs
Fix bug in descending
Add unit test for comparators
Do not sort if no comparator given
Merge pull request #184 from evansb/fix-id-bug

Fix id bug