If I have following table:
CREATE TABLE `docs` (
`id` int(6) unsigned NOT NULL,
`rev` int(3) unsigned NOT NULL,
`content` varchar(200) NOT NULL,
--
PRIMARY KEY (`id`)
)
and execute following query:
select *
from (
select *
from docs
order by rev desc
) as `rows`
will the order of returned rows be the same as order of inner query?
Can this be guaranteed, generally speaking?