package ninetyNineScalaProblems.lists import scala.annotation.tailrec object Problem28: def lsort(list: List[List[Any]]): List[Any] = list.sortWith((a, b) => a.length < b.length)