Window function requires ORDER BY

Error constant SQLE_ORDERBY_REQUIRED
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 16
SQLCODE –965
SQLSTATE 42WA9
Sybase error code 13525
Probable cause

Rank functions and window functions that use the RANGE keyword must specify an ORDER BY clause.