Dont quote object key in prioritize()
Remove extra spaces from if conditions