Specify the :order param in your find, à la :order => 'documents.number ASC'
You'll need to do a join to the documents table then, à la
@revisions = Revision.find(:all, :include => :document, :order =>
'documents.sort_field')
Read up on ActiveRecord find for more info.
Regards,
Franz
You'll need to do a join to the documents table then, à la
@revisions = Revision.find(:all, :include => :document, :order =>
'documents.sort_field')