diff --git a/tools/editor/plugins/sample_library_editor_plugin.cpp b/tools/editor/plugins/sample_library_editor_plugin.cpp index 41c84f6e2ca..96d72595ab0 100644 --- a/tools/editor/plugins/sample_library_editor_plugin.cpp +++ b/tools/editor/plugins/sample_library_editor_plugin.cpp @@ -235,6 +235,7 @@ void SampleLibraryEditor::_update_library() { List names; sample_library->get_sample_list(&names); + names.sort_custom(); for(List::Element *E=names.front();E;E=E->next()) { diff --git a/tools/editor/plugins/sample_player_editor_plugin.cpp b/tools/editor/plugins/sample_player_editor_plugin.cpp index 405107889c6..2e31467dc70 100644 --- a/tools/editor/plugins/sample_player_editor_plugin.cpp +++ b/tools/editor/plugins/sample_player_editor_plugin.cpp @@ -94,6 +94,7 @@ void SamplePlayerEditor::_update_sample_library() { List samplenames; sl->get_sample_list(&samplenames); + samplenames.sort_custom(); for(List::Element *E=samplenames.front();E;E=E->next()) { samples->add_item(E->get()); }