If I understand the question, do you want to sort the output so that the groups are rounded rather than ordered. You can do this by listing the values ββwithin each group and then using this information to sort:
SELECT t.* FROM (SELECT t.*, (@rn := if(@g = groups, @rn + 1, if(@g := groups, 1, 1) ) ) as rn FROM table t CROSS JOIN (SELECT @rn := 0, @g := '') params WHERE MATCH (title) AGAINST ('marka tv') ORDER BY groups ) t ORDER BY rn, groups;
source share