In this blog post, you’ll learn more about the Sybase Error Geometry expressions cannot be used in the ORDER BY specification (near ‘%1’) and the reason for receiving this error
Sybase SQL Error Message
Geometry expressions cannot be used in the ORDER BY specification (near ‘%1’)
Reason for this Error
Geometry expressions cannot be used in the ORDER BY clause. The ST_LinearHash() method may be used in the ORDER BY specification to order geometry values using the same rules used for spatial indexes, or a conversion method such as ST_AsText() may be used to order the rows by their string representation.