- Issue created by @adamps
- 🇬🇧United Kingdom adamps
From 🐛 Fix problems arising from "Consolidate tests" Active :
Existing comment/API:
* If there are multiple ongoing date-based declarations for this charity in this context,
* then get the one with no end date or the end date furthest in the future.J: If 2 declarations had the same end date, we should prefer the newer of the 2.
A: Sorting by declared date we can do via SQL. Sorting by end date with special handling of NULL, probably we can't, see https://stackoverflow.com/a/12767777 comment by user330315.