Sorting code not working correctly

Printable View