7868: fix Interval error in master

fixes #7868; see commit notes
I did that for all_sorted_args routines. Now running tests.