Added order by priority on items of index