assume that we are performing search using keywords: keyword1, keyword2, keyword3
there are records in database with column \"name\":
1: John Doe 2: Samue
order by case when name LIKE "%John%" then 1 when name LIKE "%Doe%" then 2 else 3 end