Test for sorting options