有messages 和 replies 兩個table
messages(`id`, `postby`, `postto`, `title`, `message`, `postdate`, `plsreply`, `urgent`)
replies(`id`, `postby`, `replyto`, `postdate`, `message`)
replies.replyto = messages.id
我有一個問題關於sorting
我現在想要messages.*, 
本來我是ORDER BY messages.postdate DESC
想改成如果該messages有replies 就想以replies.postdate DESC 排前請問有辦法做到嗎?謝謝