I have the following query that produces results successfully. However, the results are consistent, and I would like to order them by column in both tables named clicks
(SELECT women_id, title, body FROM women ORDER BY women_id DESC LIMIT 5) UNION ALL (SELECT man_id, title, body FROM man ORDER BY man_id DESC LIMIT 5)
Now he gives the following results:
women 41124 women 124 women 12 women 2 women 1 men 3455434 men 1233 men 135 men 23 men 1
I need it to give final results as follows:
men 3455434 women 41124 men 1233 men 135 women 124 men 23 women 12 women 2 women 1 men 1
source share