Our application has a lot of references to a list of i.e. Soccer matches. These soccer matches are 90% of the time sorted (at Date), in some contexts not.
The problem is that it's often quite important to know if it's sorted or not. With the possibility of detecting bugs late. Now I can prefix every reference like i.e.
sortedMatches, but that feels very cumbersome in a lot of contexts.
Is this a common problem? What's a good solution?