Inspectopedia
 
2024.3

Redundant ordering direction

Warning
New
Last modified: 03 December 2024

Reports redundant ordering directions like ASC and DESC in ORDER BY clauses.

Example (MySQL):

The ORDER BY keyword sorts the records in the ascending order by default. So, the ASC keyword for a and c columns is redundant.