SORT_BY_OFFSET property

Comparator<Element> SORT_BY_OFFSET
final

A comparator that can be used to sort elements by their name offset. Elements with a smaller offset will be sorted to be before elements with a larger name offset.

Implementation

static final Comparator<Element> SORT_BY_OFFSET =
    (Element firstElement, Element secondElement) =>
        firstElement.nameOffset - secondElement.nameOffset;