How to sort a list in Scala by two fields?

rows.sortBy(r => (r.lastName, r.firstName))

Leave a Comment