The following code outputs in order of 1, 10, 11, 12 of id.
I want to make it 1,2,3,4...
Could anyone tell me what I should do please.
$Q = $this->db->query('SELECT P.*, C.Name AS CatName FROM products AS P LEFT JOIN categories C ON C.id = P.category_id');
Thanks in advance.