Post History
Scala, 64 bytes c=>_.sortBy(x=>c.map(_(x)))(math.Ordering.Implicits.seqOrdering) Try it in Scastie! A rather crude answer, but I'll come back later to golf it. It's rather simple, though...
Answer
#1: Initial revision
# Scala, 64 bytes ```scala c=>_.sortBy(x=>c.map(_(x)))(math.Ordering.Implicits.seqOrdering) ``` [Try it in Scastie!](https://scastie.scala-lang.org/6eq3Ev7gS9OmVVUQpIraaQ) A rather crude answer, but I'll come back later to golf it. It's rather simple, though - it simply sorts by the result of applying every comparator function to each of the elements.