Order by dynamic field

Yes, why not?

class MyModel < ActiveRecord::Base
  def self.some_calculations(id)
     find(:all, :conditions => ['id != ?', id], :order => 'rand()')
  end
end

MyModel.some_calculations(66)

OR drop the self and have an instance method....

class MyModel < ActiveRecord::Base
  def some_calculations
     find(:all, :conditions => ['id != ?', id], :order => 'rand()')
  end
end

Justas wants to order the rows according to the result of applying some_calculations() to them.

-- fxn