the sorting per priority has now been fixed