Implemented sorting of tasks in regular categories