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