This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
So for "ORDER BY" or "GROUP BY" one should enter "BY" manually in all cases. It's better to suggest both cases "ORDER" and "ORDER BY" or just suggest "BY" after such words.
Sorry, wrong check.