NET_CompareFileEntryInfoStructs (const void *ent2, const void *ent1)
NET_CompareFileEntryInfoStructs (const void *ent2, const void *ent1, void *unused)
NET_CompareFileEntryInfoStructs (const void *ent2, const void *ent1){    int status;    const NET_FileEntryInfo *entry1 = *(NET_FileEntryInfo **) ent1;    const NET_FileEntryInfo *entry2 = *(NET_FileEntryInfo **) ent2;	if(!entry1 || !entry2)		return(-1);    switch(net_file_sort_method)      {        case SORT_BY_SIZE:                        /* both equal or both 0 */                        if(entry1->size == entry2->size)                            return(PL_strcmp(entry2->filename, entry1->filename));                        else                            if(entry1->size > entry2->size)                                return(-1);                            else                                return(1);                        /* break; NOT NEEDED */        case SORT_BY_TYPE:                        if(entry1->cinfo && entry1->cinfo->desc && 										entry2->cinfo && entry2->cinfo->desc)                           {                            status = PL_strcmp(entry1->cinfo->desc, entry2->cinfo->desc);                            if(status)                                return(status);                            /* else fall to filename comparison */                          }                        return (PL_strcmp(entry2->filename, entry1->filename));                        /* break; NOT NEEDED */        case SORT_BY_DATE:                        if(entry1->date == entry2->date)                             return(PL_strcmp(entry2->filename, entry1->filename));                        else                            if(entry1->size > entry2->size)                                return(-1);                            else                                return(1);                        /* break; NOT NEEDED */        case SORT_BY_NAME:        default:                        return (PL_strcmp(entry2->filename, entry1->filename));      }}