Sort and case options now working