Adding priorities for sort order