I have a list of simple scala case class instances and I want to print them in predictable, lexicographical order using list.sorted, but receive \"No implicit O
list.sorted
The sortBy method would be one typical way of doing this, eg (sort on tag field):
tag
scala> l.sortBy(_.tag)foreach(println) A(article,2) A(lines,7) A(words,50)