Checking sortedness according to a given predicate must not use `==` operator because it may not be in accordance with the predicate. In `std.algorithm.sorting.merge` this is happening which produces an unjustified error in some cases.
@a-ludi updated dlang/phobos pull request #7928 "Check for sortedness must not use `==`" fixing this issue: - Fix issue 21810: Check for sortedness must not use `==` https://github.com/dlang/phobos/pull/7928
dlang/phobos pull request #7928 "Check for sortedness must not use `==`" was merged into master: - b13306c667cf818aa8ed624777fbfbfede5d0c1f by Arne: Fix issue 21810: Check for sortedness must not use `==` https://github.com/dlang/phobos/pull/7928