v.23.12New Feature
ORDER BY Clause Enhanced to Support ALL Option in ClickHouse
TheORDER BYclause now supports specifyingALL, meaning that ClickHouse sorts by all columns in theSELECTclause. Example:SELECT col1, col2 FROM tab WHERE [...] ORDER BY ALL. #57875 (zhongyuankai).
Why it matters
This feature simplifies queries where users want to sort results by every selected column without explicitly listing them, reducing query complexity and potential errors.How to use it
In your query, useORDER BY ALL to sort the output by all columns specified in the SELECT statement. For example:SELECT col1, col2 FROM tab WHERE ... ORDER BY ALL