From: david Date: Wed, 27 Feb 2002 14:58:18 +0000 (+0000) Subject: Patch from Andy Ross to sort properties in browser. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=123f8b083d400a17d1d9cce2ce2fb0f342251e7a;p=flightgear.git Patch from Andy Ross to sort properties in browser. --- diff --git a/src/GUI/prop_picker.cxx b/src/GUI/prop_picker.cxx index 59674c36d..383581310 100755 --- a/src/GUI/prop_picker.cxx +++ b/src/GUI/prop_picker.cxx @@ -501,6 +501,23 @@ void fgPropPicker::find_props () files [ num_files ] = NULL ; + // Sort the entries. This is a simple N^2 extraction sort. More + // elaborate algorithms aren't necessary for the few dozen + // properties we're going to sort. + for(i=0; i setLabel (startDir);