assume that we are performing search using keywords: keyword1, keyword2, keyword3
there are records in database with column \"name\":
1: John Doe 2: Samue
To build on RedFilter's answer, you could make the rows that have both keywords to be at the top:
order by case when (name LIKE "%John%" and name LIKE "%Doe%") then 1 when name LIKE "%John%" then 2 when name LIKE "%Doe%" then 3 end