moved the sorting options to their correct place