sort method

List<Facet> sort()

Implementation

List<Facet> sort() {
  Map<int, Facet> map = {};
  for (Facet facet in record.facets!) {
    map[facet.index.byteStart] = facet;
  }
  map = SplayTreeMap.from(map, (a, b) => a.compareTo(b));
  return map.values.toList();
}