ordering of residues fixed

Merge request reports