A search curser was ignoring the ORDER BY command I had plugged in and I thought I'd enter a nonsense sql_clause just to see what error it threw. The uncommented one below is the cursor command with the nonsense sql_clause

It ... runs fine. It doesn't do the ordering I want it to do, of course, but it runs. No error. When I run the line with the ORDER BY clause it completely ignores the order also. The 'order_field' is a field that exists. I've tried hard- coding the field name in the clause. It just won't work.
Throwing this out in the off chance that the problem here is obvious to someone. I suspect I may have to do lots and lots of troubleshooting/error trapping. Something is off here.
Thank you,
Randy McGregor