I've updated the sort code on this page and the rsobj.php file to work better with the types of sorts you are using. Please download those pages.
Your cancel button still had the old style mysql update code and not mysqli. I updated that as well and the page seems to be working now.