I have a Union hat I need to order, however I am struggling to get the order correct. I have two tables that are correctly pulling the data. The two order columns use an auto increment to give it an order number. So now I have matching numbers in the columns. This means that ordering goes
A.1
B.1
A.2
B.2
What I really want is the order to be
A.1
A.2
B.1
B.2
I have tried adding names to the columns and ordering by A.orders, B.orders but this wont work. Any ideas for me guys???
Code:
SELECT `order`, field_name FROM all_child_fields WHERE editible='1' UNION SELECT `order`, field_name FROM a_child_fields WHERE editible='1' ORDER BY `order`