sort method Null safety

void sort()

Sorts the sequence set.

Use when the request assumes an ordered sequence of IDs or UIDs

Implementation

void sort() {
  _ids.sort();
  // Moves the `*` placeholder to the bottom
  if (_isLastAdded) {
    if (_ids.remove(STAR)) {
      _ids.add(STAR);
    }
    if (_ids.remove(RANGESTAR)) {
      _ids.add(RANGESTAR);
    }
  }
}