title: How to order in exact time of creation in Ruby on Rails
body: <p>I have a model, Course, which <code>has_many tees</code>. The tees are created individuall from a hash derived from an api e.g</p>
  
  <pre><code>  course_h[:tees].each do |tee_h|
      course.tees.create!(tee_h)
    end
  </code></pre>
  
  <p>Later I retrieve another hash and want to compare the new hash with the saved tees. I would like to have the same order as the original hash, and assumed that I could do this with <code>course.tees.order(created_at: :asc)</code>. This works in the test environment, but in development environment, the order is not the same.  Why is this, and is there a way to fix it?</p>