Browse Source

Merge pull request #1569 from sanikoyes/Pr-sort-sample-library

Pr-sort-sample-library
Juan Linietsky 10 years ago
parent
commit
d1567636f4

+ 1 - 0
tools/editor/plugins/sample_library_editor_plugin.cpp

@@ -235,6 +235,7 @@ void SampleLibraryEditor::_update_library() {
 
 	List<StringName> names;
 	sample_library->get_sample_list(&names);
+	names.sort_custom<StringName::AlphCompare>();
 
 	for(List<StringName>::Element *E=names.front();E;E=E->next()) {
 

+ 1 - 0
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());
 	}