Extracted from `order` processing of arguments, and use it for `reorder` to be consistent.
Merge pull request #11958 from jetthoughts/extract_pre_process_orders_args

Re-use order arguments pre-processing for reorder
ActiveRecord::Base#attributes return HashWithIndifferentAccess instance instead of Hash.