Subject Re: order by column alias problem
Author Adam
Firebird doesn't support that syntax. I am not quite sure why.
PostgreSQL and others implement it, so I can't think of a reason to
deliberately not include it.

Changing the persistance layer to "Order By mstwid" or "Order By 1"
should work in all the dbms systems. Maybe you should put it in as a
feature request (but search first to see if it is not already suggested).