givewp
givewp copied to clipboard
Fix: fix the sort order to get the expected result
Resolves #
Description
give()->donations->getLatestDonation() gave the first donation and vice versa.
solve : invert sort order DESC <--> ASC
this was the easiest method to get the job done
Testing Instructions
give()->donations->getLatestDonation()->id must be greather than give()->donations->getFirstDonation()->id
Pre-review Checklist
- [ ] Acceptance criteria satisfied and marked in related issue
- [ ] Relevant
@unreleased
tags included in DocBlocks - [ ] Includes unit tests
- [ ] Reviewed by the designer (if follows a design)
- [ ] Self Review of code and UX completed