@Test
    public void testSortedWithZipWithIndexBiFunction() {
        assertEquals(
            asList("a:0", "b:1", "c:2"),
            Seq.of("c", "a", "b").sorted().zipWithIndex((s, i) -> s + ":" + i).toList()
        );

        assertEquals(
            asList("c:0", "b:1", "a:2"),
            Seq.of("c", "a", "b").sorted(reverseOrder()).zipWithIndex((s, i) -> s + ":" + i).toList()
        );

        assertEquals(
            asList("a:1", "b:2", "c:0"),
            Seq.of("c", "a", "b").zipWithIndex((s, i) -> s + ":" + i).sorted().toList()
        );

        assertEquals(
            asList("c:0", "b:2", "a:1"),
            Seq.of("c", "a", "b").zipWithIndex((s, i) -> s + ":" + i).sorted(reverseOrder()).toList()
        );
    }
@author Lukas Eder
@author Roman Tkalenko
jOOL-java-8/src/test/java/org/jooq/lambda/SeqTest.java