Not sure how you end up with quantities in this comment, I don't see any connection.

The IDs are not arbitrary, and they are currently ordered. This is intentional, as one can then do comparisons between the ranks. ie if ( $claim->getRank > $otherClaim->getRank )

So this code is fine in that regard.