I have a query
Select tableA.*, max(`queue_position`) AS `product_advertisements.queue_position`
from tableA join tableB
group by tableA.attribute
order by `product_advertisements.queue_position` ASC
When the query runs, its not actually sorting by the queue position,
This is my return https://gyazo.com/471749b349d64e94707b9452d4b25417, This is the expected output, https://gyazo.com/e8c92b2898a404781c9de095f1146143
Does it have something to do with ordering by the joined attribute? Why is my order by clause being ignored completely