Sorts and dedups label ids in batch importer
Merge pull request #3427 from tinwelint/2.2-bip-sort-label-ids

Sorts and dedups label ids in batch importer