added sorting by priorityNumber for children