A query-level ORDER BY clause can use a column alias from the select list. Under binary character sorting, uppercase and lowercase character values are distinct and therefore sort case-sensitively. Ascending order is the default regardless of decimal positions, and NULL values are included in ordering, with their position controlled by NULLS FIRST or NULLS LAST.
Community Discussion