| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

sort_dir_list

#include "sfldir.h"
void
sort_dir_list (NODE *file_list, const char *sort)

Synopsis

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.

Source Code - (sfldir.c)

{
    ASSERT (file_list);
    sort_key = (char *) sort;
    list sort (file_list, compare_dir);
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation