Clean up sorting, enable reverse sorting, and make sure data is cleared between sorts