Schema
create table author (name text);
insert into author (name) values ('Max Red');
insert into author (name) values ('Susan Sue');
insert into author (name) values ('John Post');
Query
SELECT substr(name, 1, pos-1) AS first_name,
substr(name, pos+1) AS last_name
FROM
(SELECT *,
instr(name,' ') AS pos
FROM author)
ORDER BY first_name,
last_name;
Result
+------------+-----------+
| first_name | last_name |
+------------+-----------+
| John | Post |
| Max | Red |
| Susan | Sue |
+------------+-----------+