How to sort a list in Scala by two fields? June 7, 2023 by Tarik rows.sortBy(r => (r.lastName, r.firstName))