I should have mentioned that I am using Jasper Server to view the report. I really think that this must be a bug. LCODE and LDESK are varchar types and total is double. If I call the report with a default to sort by total it executes correctly. If I call the report to execute and sort by any of the other 2 fields I get the error. Should I file this as a bug or I am doing something seriously wrong?