Merge pull request #216 from Useful-Innovation/johans-fixes

fixed sorting by deadline & pris in -> inpris