ticket:13 Add order by priority
Merge branch 't13_priority'