Group By, Order By, and Limit

So I had a question while optimizing some Mysql queries. What is the right order for the 3 commands I needed in this query: GROUP BY, ORDER BY, and LIMIT?

I found this link http://dev.mysql.com/doc/refman/5.0/en/select.html and there, it shows the order as I have them listed above. It just so happens I was lucky and had them in the right order. Seems that I didn't want the Limit on, as MySQL will stop returning rows as soon as it finds 3 unique rows, which I didn't want, as I wanted it to return the highest frequency rows, and this would've just brought back the first 3 unique rows and called it quits.