I have this table
state   num
-------------------------
ca      20
ny      30
ca      50
ca      10
ny      70
ny      90
What I want is to produce this:
state   num
-------------------------
ca      50
ca      20
ca      10
ny      90
ny      70
ny      30
Basically, I want the state column to be sorted, and then within each state, have the num sorted as well. How can I achieve this?
 
     
    