How to sort a list in Scala by two fields? November 14, 2022 by Tarik rows.sortBy(r => (r.lastName, r.firstName))