loader.py: Optimize sorting of elements when they are multiple targets
Description
Optimize
Benchmarks
The benchmarks have been run by running bst show
on the debian project (no target listed), and recording only the 'loading elements' time.
- on master: 56m
- on bschubert/optimize-loading-multiple-targets: 0:22m
Edited by Benjamin Schubert