BUG Fixed issue with incorrect parsing of sort order from front end ajax requests.

This was generating broken SQL such as ORDER BY ""