I'd like to be able to compare periods for sorting etc.
Clearly this is tricky when months and years are involved, and clearly there's
no way to create an IAlmostComparableSortOf interface, but it seems likely that
there is a "common-sense" (or useful) answer to most of the problems:
4 weeks is less than 1 month (nearly always)
4 weeks is never more than 1 month (always)
12 months is equal to 1 year (in most cases)
52 weeks is less than a whole year (always)
etc.
And even when there isn't, it's still useful to present an 'almost certainly
sorted' list to a user instead of not being able to show anything.
Original issue reported on code.google.com by
HighTech...@gmail.comon 19 Apr 2012 at 3:42