find :all using :group

User.find(:all, :order => 'os')

:order sorts ascending by default. You can define the sort order explicitly with ASC or DESC (i.e., 'os ASC' or 'os DESC').