ORDER BY not allowed in window '%1'

Item Value
SQLCODE -949
Constant SQLE_ORDERBY_NOT_ALLOWED
SQLSTATE 42WA5
Sybase error code 13539
ODBC 2 State ERROR
ODBC 3 State ERROR
Parameter 1 The name of the window.

Probable cause 

When an existing window name is referenced from an inline window specification, either the inline window or the referenced window may have an ORDER BY, but not both.