4 ms·> - sortBy is just lst.sort(key=fn) You mean sorted(). list.sort only works on list and in-place.by masklinn 5y ago> - sortBy is just lst.sort(key=fn) You mean sorted(). list.sort only works on list and in-place.