How to make such a search?

In the database there are:
id | name
1 | Russian letter
2 | Ukrainian letter
3 | letter
4 | English letter
on the website introduced: letter, it outputs the order of all database! And it is necessary to first output a letter and then other!
code:
$raw_results = mysql_query("SELECT *, MATCH (name) AGAINST ('+$query' IN BOOLEAN MODE) as REL FROM `tab` WHERE MATCH (name) AGAINST ('+$query' IN BOOLEAN MODE) ORDER BY REL;") or die(mysql_error());
June 26th 19 at 14:01
0 answer

Find more questions by tags PHP