Scala: how can I sort an array of tuples by their second element? Scala: how can I sort an array of tuples by their second element? arrays arrays