BGO Sorting by special priory