TRIM関数を使用できます: SELECT TRIM(title) as title, field2, field3 FROM products ORDER BY TRIM(title) それでうまくいくはずです!