ORDER BY not allowed in window '%1'

Error constant SQLE_ORDERBY_NOT_ALLOWED
ODBC 2 State ERROR
ODBC 3 State ERROR
Parameter 1 The name of the window.
Severity 16
SQLCODE –949
SQLSTATE 42WA5
Sybase error code 13539
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.