Fixed issue #1

Added a cmp function to the task object which allows it to be compared on
priority
Merge branch 'bugfix-issue-1' into develop