Currently, because sorting still use old API, countries are sorted by name by default. This issue is to use new set of indicators to sort countries by default and when clicking on sort buttons.
When initiating the page, countries should be sorted by datasets_open_count, then datasets_restricted_count, then datasets_closed_count (from max to min).
Same sorting order should apply when clicking on Indicators (open, restricted, closed) buttons.
When clicking on Unknown, countries should be sorted by datasets_unknown_count.
Then remove any calls to old API country_scoring from that Explore Countries page.
New set of indicators is now implemented through this API call https://exp.riskopendata.org/api/scoring/ and is replacing this one https://exp.riskopendata.org/api/country_scoring/
Currently, because sorting still use old API, countries are sorted by name by default. This issue is to use new set of indicators to sort countries by default and when clicking on sort buttons.
When initiating the page, countries should be sorted by
datasets_open_count
, thendatasets_restricted_count
, thendatasets_closed_count
(from max to min).Same sorting order should apply when clicking on Indicators (open, restricted, closed) buttons.
When clicking on
Unknown
, countries should be sorted bydatasets_unknown_count
.Then remove any calls to old API country_scoring from that Explore Countries page.
Thanks