Sort test: add maximum number of elements to sort option