diff --git a/benchmarks/kmeans/consolidate_result_csv.py b/benchmarks/kmeans/consolidate_result_csv.py index 00ef838..81e9a50 100644 --- a/benchmarks/kmeans/consolidate_result_csv.py +++ b/benchmarks/kmeans/consolidate_result_csv.py @@ -2,7 +2,6 @@ from functools import partial from io import BytesIO from itertools import zip_longest -from operator import attrgetter import numpy as np import pandas as pd @@ -403,7 +402,7 @@ def _gspread_sync(source, gspread_url, gspread_auth_key): ) # ensure worksheets are sorted anti-alphabetically sheet.reorder_worksheets( - sorted(sheet.worksheets(), key=attrgetter("title"), reverse=True) + sorted(sheet.worksheets(), key=lambda worksheet: worksheet.title.lower()) ) # upload all values diff --git a/benchmarks/pca/consolidate_result_csv.py b/benchmarks/pca/consolidate_result_csv.py index e4e1a3f..fc34b3f 100644 --- a/benchmarks/pca/consolidate_result_csv.py +++ b/benchmarks/pca/consolidate_result_csv.py @@ -2,7 +2,6 @@ from functools import partial from io import BytesIO from itertools import zip_longest -from operator import attrgetter import numpy as np import pandas as pd @@ -401,7 +400,7 @@ def _gspread_sync(source, gspread_url, gspread_auth_key): ) # ensure worksheets are sorted anti-alphabetically sheet.reorder_worksheets( - sorted(sheet.worksheets(), key=attrgetter("title"), reverse=True) + sorted(sheet.worksheets(), key=lambda worksheet: worksheet.title.lower()) ) # upload all values diff --git a/benchmarks/ridge/consolidate_result_csv.py b/benchmarks/ridge/consolidate_result_csv.py index fd5cc2f..a991669 100644 --- a/benchmarks/ridge/consolidate_result_csv.py +++ b/benchmarks/ridge/consolidate_result_csv.py @@ -407,9 +407,7 @@ def _gspread_sync(source, gspread_url, gspread_auth_key): GOOGLE_WORKSHEET_NAME, rows=n_rows + 1, cols=n_cols ) # ensure worksheets are sorted anti-alphabetically - sheet.reorder_worksheets( - sorted(sheet.worksheets(), key=attrgetter("title"), reverse=True) - ) + sheet.reorder_worksheets(sorted(sheet.worksheets(), key=attrgetter("title"))) # upload all values worksheet.update(