Skip to content

Commit 6362a6f

Browse files
committed
fix #101: available dataset names in load_example are now sorted.
1 parent bacb5c0 commit 6362a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

larray_editor/editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def save_as(self):
649649
def load_example(self):
650650
if self._ask_to_save_if_unsaved_modifications():
651651
from larray.example import AVAILABLE_EXAMPLE_DATA
652-
dataset_names = AVAILABLE_EXAMPLE_DATA.keys()
652+
dataset_names = sorted(AVAILABLE_EXAMPLE_DATA.keys())
653653
dataset_name, ok = QInputDialog.getItem(self, "load dataset example", "list of datasets examples",
654654
dataset_names, 0, False)
655655
if ok and dataset_name:

0 commit comments

Comments
 (0)