[OP-261] fix in sort of the lattice elements
[OP-261] fix in sort of the lattice elements

EuropeanSpallationSource/openxal,EuropeanSpallationSource/openxal,EuropeanSpallationSource/openxal,EuropeanSpallationSource/openxal,EuropeanSpallationSource/openxal