From 1515de217e666a77e4ad3bee8421e718cc6b4330 Mon Sep 17 00:00:00 2001 From: sanikoyes Date: Wed, 25 Mar 2015 10:57:35 +0800 Subject: [PATCH] Sort sample lists by name(more readable) --- tools/editor/plugins/sample_library_editor_plugin.cpp | 1 + tools/editor/plugins/sample_player_editor_plugin.cpp | 1 + 2 files changed, 2 insertions(+) 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()); }