The os.Path class / os.Path methods |
Defines the sort criteria and sort order for os.Path.dirOpen().
os.Path.dirSort( criteria STRING, order INTEGER )
When you call this function, you define the sort criteria and sort order for any subsequent os.Path.dirOpen() call.
The criteria parameter must be one of the following strings:
When sorting by name, directory entries will be ordered according to the current locale.
When sorting by any criteria other than the file name, entries having the same value for the given criteria are ordered by name following the value of the order parameter.