Sqlite3 activerecord :order => “time DESC” doesn't sort
问题 rails 2.3.4, sqlite3 I'm trying this Production.find(:all, :conditions => ["time > ?", start_time.utc], :order => "time DESC", :limit => 100) The condition works perfectly, but I'm having problems with the :order => time DESC . By chance, I discovered that it worked at Heroku (testing with heroku console), which runs PostgreSQL. However, locally, using sqlite3, new entries will be sorted after old ones, no matter what I set time to. Like this ( output has been manually stripped ): second