select a.field1 f1,count(a.field1) f2 from table1 a where ...
order by count(a.field1)