Property sort now leaves "." and ".." at top of subdirectory list in their
expected sequence.
files [ num_files ] = NULL ;
+ // leave the . and .. alone...
+ int ii = ( strcmp(files [0], "." ) == 0 ) ? 2 : 0;
+
// 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<num_files; i++) {
+ for(i=ii; i<num_files; i++) {
int j, min = i;
char df, *tmp;
for(j=i+1; j<num_files; j++)
FG_FINALIZE_PUI_DIALOG( this );
}
+
+