Paternoster
03-06-2011, 01:26 PM
Hi Andrei,
I'm not sure if it has been addressed already, but there is a somewhat annoying "logical bug" in the sorting routine of dates in OCD:
The algorithm seems to sort lexicographically, which makes it erroneously recognise a date of 08.12.2010 as being earlier than 20.11.2010.
A solution for this, that doesn't require to modify the sorting algorithm, could be to change the internal handling of dates to such of ...
yyyy[[-][mm][[-][dd]]]
... (everything in square brackets is meant to be optional). This would provide a correct sorting of dates, even if "incomplete" ones like 2000-05 were used.
Of course, it would be even better, if the visible dates could also be changed to that format or if that would be optional, but changing this might require a lot more work and testing and I certainly don't want to cause you too much trouble :)
-pn
I'm not sure if it has been addressed already, but there is a somewhat annoying "logical bug" in the sorting routine of dates in OCD:
The algorithm seems to sort lexicographically, which makes it erroneously recognise a date of 08.12.2010 as being earlier than 20.11.2010.
A solution for this, that doesn't require to modify the sorting algorithm, could be to change the internal handling of dates to such of ...
yyyy[[-][mm][[-][dd]]]
... (everything in square brackets is meant to be optional). This would provide a correct sorting of dates, even if "incomplete" ones like 2000-05 were used.
Of course, it would be even better, if the visible dates could also be changed to that format or if that would be optional, but changing this might require a lot more work and testing and I certainly don't want to cause you too much trouble :)
-pn