Permalink
Browse files

Note that find results may not be in the same order as the id argumen…

…ts. Closes #7719.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 821f2d5 commit 1e9e198cc5c053a9137de78d524412105ac20065 @jeremy jeremy committed Mar 6, 2007
Showing with 4 additions and 0 deletions.
  1. +4 −0 activerecord/lib/active_record/base.rb
@@ -386,6 +386,10 @@ class << self # Class methods
# Person.find([1]) # returns an array for objects the object with ID = 1
# Person.find(1, :conditions => "administrator = 1", :order => "created_on DESC")
#
+ # Note that returned records may not be in the same order as the ids you
+ # provide since database rows are unordered. Give an explicit :order
+ # to ensure the results are sorted.
+ #
# Examples for find first:
# Person.find(:first) # returns the first object fetched by SELECT * FROM people
# Person.find(:first, :conditions => [ "user_name = ?", user_name])

0 comments on commit 1e9e198

Please sign in to comment.