public ImmutableSet<Replacement> ascending() {
    return ImmutableSet.copyOf(replacements.descendingMap().values());
  }
@Test
  public void ascending() {
    assertThat(
            Iterables.transform(
                new Replacements()
                    .add(Replacement.create(0, 0, "hello"))
                    .add(Replacement.create(0, 1, "hello"))
                    .ascending(),
                AS_RANGES))
        .containsExactly(Range.closedOpen(0, 0), Range.closedOpen(0, 1))
        .inOrder();
    assertThat(
            Iterables.transform(
                new Replacements()
                    .add(Replacement.create(0, 1, "hello"))
                    .add(Replacement.create(0, 0, "hello"))
                    .ascending(),
                AS_RANGES))
        .containsExactly(Range.closedOpen(0, 0), Range.closedOpen(0, 1))
        .inOrder();
  }