Fix order merging. Fixes #5028