sortLeftToRight method
void
sortLeftToRight()
Sorts the artifacts in this band from left to right.
This method orders the artifacts based on their left edge position, ensuring they are in the correct sequence as they appear in the band.
Implementation
void sortLeftToRight() {
artifacts.sort(
(a, b) => a.matrix.rectangle.left.compareTo(b.matrix.rectangle.left),
);
}