Optimize the sorting of particles according to barcodes.
https://its.cern.ch/jira/browse/ATLASSIM-6193
Tag @jchapman @christos