setting the sorting