sortByNumeric method

List<T> sortByNumeric(
  1. TFuncMapper<T, num> funcMapper, [
  2. bool descending = false
])

Implementation

List<T> sortByNumeric(TFuncMapper<T, num> funcMapper, [ bool descending = false ]) {
	var lst = this.sortBy((x) => funcMapper(x), descending).toList();
	return lst;
}