I've got some ideas, not sure if they'll work, and I'm still using rails 2.3
Idea 1- add to your models default_scope :order => 'sequence'
Idea 2-
Product.find(:all, :include =>{:product_properties => {:properties => :property_type} }, :order=>" products.sequence, property_types.sequence")
note: the table may not be called property_types in the query, but you can look at the logs and see what sort of alias it was give by rails.
Last resort
a.sort_by {|a| a}
(no need to create a hash)
Anna
2010-10-05 18:31:12