Sorting with numeric references as a key will gather records with the same reference together. This might be done, for example, to weed out duplicates. Other than that, yes, you're right, the ordering between non-identical references is pseudo-random and not very useful.
jeffrey