how to do sorting in ROR

Hi, are the list box items being retrieved from the DB? If so, you can simply use the ':order' within the find method of your model. For example,

orders = Order.find(:all, :order => ["pay_type, shipped_at DESC"], :conditions => "id = ?", 25 )

If not, please provide more information as to how you're populating the list box.

Good luck,

-Conrad