sorted in replacement commit + added a test to prove it.