Re-use order arguments pre-processing for reorder

In order to be consistent with `order`, `reorder` should have the same pre-processing logic for arguments as `order` does.

Extracted from `order` processing of arguments and use it for `reorder`.