sortBy function

List sortBy(
  1. List list,
  2. dynamic iteratees
)

Implementation

List sortBy(List list, dynamic iteratees) {
  if (iteratees is! List) iteratees = [iteratees];
  return orderBy(list, iteratees);
}