sortByTerm method

List<DftMapEntry> sortByTerm()

Sorts the collection of DftMapEntrys alphabetically.

Implementation

List<DftMapEntry> sortByTerm() {
  final terms = List<DftMapEntry>.from(this);
  terms.sort((a, b) => a.term.compareTo(b.term));
  return terms;
}