Sorted metrics

We shouldn't compare the release with with "==", but with the equals method instead (making sure the release has an appropriate equals method. We can use Lombok annotation for that