Use desktop for interactive SQL sandbox
Tip: Press Alt+Enter to run SQL

SQL Output

The Natural Sort Problem
Public
Humans expect 1, 2, 10. Databases give you 1, 10, 2. Learn the pattern for sorting embedded numbers correctly.
jrz1977
PostgreSQL
Created Feb 3, 2026
1Notes Notes
2SQL SQL
1 SQL 1 Notes
Switch to a SQL tab and press Alt+Enter to run queries
The Natural Sort Problem Updated 2/3/26, 1:13 AM
Notes SQL
Alt+Enter to run