DOC: correct merge_ordered example
- update of incorrect documentation example for merge_ordered.
- adding a test corresponding to this example.

- [ ] closes #19393 
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
