More deterministic comparison for ProtoParticle Relations
Follow up to Rec!3336 (merged): make the comparison used for the sorting deterministic by comparing container ID and key instead of pointer values.
Should fix Moore#538 (closed)
For reference update, can (should) be joined with Rec!3339 (merged)
Edited by Gerhard Raven