saattrupdan commited on
Commit
f04c64c
·
1 Parent(s): 995f0f4

feat: Sorting is case-independent

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -245,8 +245,14 @@ def main() -> None:
245
  results_dfs = fetch_results()
246
  last_fetch = dt.datetime.now()
247
 
248
- all_languages = sorted([language.name for language in ALL_LANGUAGES.values()])
249
- danish_models = sorted(list({model_id for model_id in results_dfs[DANISH].index}))
 
 
 
 
 
 
250
 
251
  # Get distinct RGB values for all models
252
  all_models = list(
 
245
  results_dfs = fetch_results()
246
  last_fetch = dt.datetime.now()
247
 
248
+ all_languages = sorted(
249
+ [language.name for language in ALL_LANGUAGES.values()],
250
+ key=lambda language_name: language_name.lower(),
251
+ )
252
+ danish_models = sorted(
253
+ list({model_id for model_id in results_dfs[DANISH].index}),
254
+ key=lambda model_id: model_id.lower(),
255
+ )
256
 
257
  # Get distinct RGB values for all models
258
  all_models = list(