- replaces labelHashSet with a sorted labelList to ensure that patches will be processed in consistent order in parallel