| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sfldir.h" void sort_dir_list (NODE *file_list, const char *sort)
Sorts the directory list as specified. Returns the number of items in the list. To specify the sort order you pass a string holding one or more of these characters, which are then used in order:
n | Sort by ascending name. |
N | Sort by descending name. |
x | Sort by ascending extension. |
X | Sort by descending extension. |
t | Sort by ascending time and date. |
T | Sort by descending time and date. |
s | Sort by ascending size. |
S | Sort by descending size. |
{ ASSERT (file_list); sort_key = (char *) sort; list sort (file_list, compare_dir); }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |