diff options
| author | sanikoyes | 2015-03-25 10:57:35 +0800 |
|---|---|---|
| committer | sanikoyes | 2015-03-25 10:57:35 +0800 |
| commit | 1515de217e666a77e4ad3bee8421e718cc6b4330 (patch) | |
| tree | de3ab96350c1be58af6d0d7a5f13a04e015d8c89 /tools/editor/plugins/sample_player_editor_plugin.cpp | |
| parent | cbad0440ab078e72fcd5af50fa800d9720fb7761 (diff) | |
| download | godot-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.cpp | 1 |
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()); } |
