fix task sort order