hodcroftlab / covariants

Real-time updates and information about key SARS-CoV-2 variants, plus the scripts that generate this information.
https://covariants.org/
GNU Affero General Public License v3.0
317 stars 111 forks source link

Sort countries alphabetically on cases page #315

Open yuval-harpaz opened 2 years ago

yuval-harpaz commented 2 years ago

Please sort the charts of countries' cases by alphabetical order, or make a "sort" button to do that. It takes time to browse for my country, I end up using ctrl+f. Thanks This page

dcordoba97 commented 2 years ago

Hello @yuval-harpaz ! Is anyone working on this issue? If not, I'd love to :)

emmahodcroft commented 2 years ago

Hi @dcordoba97 - I don't think anyone is actively working on this, but there was a previous PR that would be worth looking over!

One thing worth noting is that we'd need a button or slider somewhere on relevant pages (Per Country, Per Variant, Cases) to allow sorting by either number of sequences (default) or alphabetical (on choice), so that users can select which they prefer! (Rather than just switching all sorting to alphabetical, as the other PR did.)

With a note to the issue about the fact that the sorting on the Cases page didn't seem to be strictly by sequence counts - it would be fine to implement something that makes this work as intended, rather than however it currently is!

I think this would be a great feature if you are able to work on it!

dcordoba97 commented 2 years ago

Sounds interesting! Thanks for the guidance!