I don't think that I understand what you mean. This does what the replaced version does, only it doesn't do replacements for equal times. And yes, this could also be rewritten with iteration using the `TreeMap`, but RC2 is coming up.