givewp icon indicating copy to clipboard operation
givewp copied to clipboard

Fix: fix the sort order to get the expected result

Open pulsovi opened this issue 2 years ago • 0 comments

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

pulsovi avatar Sep 13 '22 15:09 pulsovi