Fix wrong sorting of planner items