here is my model:
class Thing < Ohm::Model
attribute :created_at
index :created_at
end
I'm not able to sort the records by datetime (created_at).
Thing.all.order_by(:created_at)
NoMethodError: undefined method `each' for #<RuntimeError:0x0000010537dec0>
I know internally everything is stored as a string, and probably that is the problem. It just seems very weird there's nothing in the library or in some contrib gem to do this.
Any suggestion?