Some SQL statements require that data be ordered, including those with ORDER BY, GROUP BY, and DISTINCT. MIN() and MAX() aggregates also require ordering of data.
See Cost-based ORDER BY sort avoidance
See Non-cost-based sort avoidance (tuple filtering)
See The MIN() and MAX() optimizations