WildAid / o-fish-web

Web application for the Officer's Fishery Information Sharing Hub (O-FISH). The web app allows agencies to gain insights from the aggregated information gathered during a routine vessel inspection (submitted via the web app).
Apache License 2.0
31 stars 41 forks source link

Default to boarding records list should be descending by date #443

Closed Sheeri closed 2 years ago

Sheeri commented 2 years ago

Default to boarding records list should be descending by date - on Boarding records -> Boardings

mmhuseynov commented 2 years ago

I fixed this issue on the MongoDB Realm. @Sheeri please check that.

Sheeri commented 2 years ago

Confirmed! The code itself is stored in the repo at https://github.com/WildAid/o-fish-realm; I will update the change to searchFacetByBoardings there.

Sheeri commented 2 years ago

Oh, one thing - why isn't sortingTerms added to line 48? https://realm.mongodb.com/groups/5ef9c84380490a4859613112/apps/5f227996113931f95d7aea5e/functions/60a40bdb90394cecd1825ca6

Sheeri commented 2 years ago

Oh, I figured it out, because it's the amount, total count, and doesn't need to be sorted.....