While looking at the XReal project and figuring out what features need to be ported to that new quake engine (in order to make a new paintball clone), I noticed on my linux version of PB2 (v27) the maps list seems sorted ina random order as returned by the filesystem. For anyone who knows how to re-compile pb2 this can be fixed since you have access to the code which retrieves the maps list.. actually I changed it for all calls to getting file lists. To fix the map sort order edit qcommon/files.c as follows:
navigate the method:
char **FS_ListFiles (const char *findname, int *numfiles, unsigned musthave, unsigned canthave)
just above the last line (return list;) add this:
qsort (&list[0], nfiles, sizeof(char *), SortList);
Now navigate to the SortList method and change it to:
int SortList (const void *data1, const void *data2)
{
const char **a = (const char **)data1;
const char **b = (const char **)data2;
return strcmp(*a, *b);
}
Recompile and viola.. maps are sorted alphabetically again.