Mysql: Order by like? September 17, 2023 by Tarik order by case when name LIKE "%John%" then 1 when name LIKE "%Doe%" then 2 else 3 end