Frontend

Front-End changes.  Fix bugs in sort functionality.  Some error handling.