sortArtifactsLeftToRight method
void
sortArtifactsLeftToRight()
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 sortArtifactsLeftToRight() {
artifacts.sort(
(a, b) => a.rectAdjusted.left.compareTo(b.rectAdjusted.left),
);
}