Extracted from `order` processing of arguments, and use it for `reorder` to be consistent.
ActiveRecord::Base#attributes return HashWithIndifferentAccess instance instead of Hash.