Re #7858. Sort peaks by d-spacing before comparing.
Merge remote branch 'origin/bugfix/7858_broken_scd'