I am not asking for the simple select query. I have a detailed table which have multiple records. I want to fetch record for particular id but in some manner.
I have tried below query:
SELECT `id` , `po_id` , `part_id` , `qty` , `price` , `status` , `lotid`
FROM `po_details`
WHERE `po_id` =3
and it gives me below result:

Now what I want is get all above data but order by id and then order by partid, so the result would be like this
id partid
---- ------
11 27
15 27
12 43
16 43
13 102
14 15
17 24
can anyone help me? what changes required into my query to get my desire result?
EDIT
I have already tried this query but it gives me the same result
SELECT `id` , `po_id` , `part_id` , `qty` , `price` , `status` , `lotid`
FROM `po_details`
WHERE `po_id` =3
ORDER BY `id` , `part_id`;
Thanks,
Pkachhia
As Lieven said your need an additional column for sorting. As workaround you can use :