This:
ORDER BY 1
…is known as an “Ordinal” – the number stands for the column based on the number of columns defined in the SELECT clause. In the query you provided, it means:
ORDER BY A.PAYMENT_DATE
It’s not a recommended practice, because:
- It’s not obvious/explicit
- If the column order changes, the query is still valid so you risk ordering by something you didn’t intend