aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/sample_player_editor_plugin.cpp
diff options
context:
space:
mode:
authorsanikoyes2015-03-25 10:57:35 +0800
committersanikoyes2015-03-25 10:57:35 +0800
commit1515de217e666a77e4ad3bee8421e718cc6b4330 (patch)
treede3ab96350c1be58af6d0d7a5f13a04e015d8c89 /tools/editor/plugins/sample_player_editor_plugin.cpp
parentcbad0440ab078e72fcd5af50fa800d9720fb7761 (diff)
downloadgodot-1515de217e666a77e4ad3bee8421e718cc6b4330.tar.gz
godot-1515de217e666a77e4ad3bee8421e718cc6b4330.tar.zst
godot-1515de217e666a77e4ad3bee8421e718cc6b4330.zip
Sort sample lists by name(more readable)
Diffstat (limited to 'tools/editor/plugins/sample_player_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/sample_player_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/plugins/sample_player_editor_plugin.cpp b/tools/editor/plugins/sample_player_editor_plugin.cpp
index 405107889..2e31467dc 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<StringName> samplenames;
sl->get_sample_list(&samplenames);
+ samplenames.sort_custom<StringName::AlphCompare>();
for(List<StringName>::Element *E=samplenames.front();E;E=E->next()) {
samples->add_item(E->get());
}