Geometry expressions can not be used in the ORDER BY specification (near '%1')

Error constant SQLE_SLERR_GEOM_ORDER_BY
ODBC 2 state ERROR
ODBC 3 state ERROR
Parameter 1 The geometry expression.
Severity 16
SQLCODE -1531
SQLSTATE 2FW92
Sybase error code 12574
 Probable cause