win32.c
changeset 164 0cbdf3c9bde1
parent 153 3dbe2cfd7b3c
child 193 0a7025304867
equal deleted inserted replaced
163:deb9b58db3f4 164:0cbdf3c9bde1
  1468 	const FiosItem *da = (const FiosItem *) a;
  1468 	const FiosItem *da = (const FiosItem *) a;
  1469 	const FiosItem *db = (const FiosItem *) b;
  1469 	const FiosItem *db = (const FiosItem *) b;
  1470 	int r;
  1470 	int r;
  1471 
  1471 
  1472 	if (_savegame_sort_order < 2) // sort by date
  1472 	if (_savegame_sort_order < 2) // sort by date
  1473     r = da->mtime < db->mtime ? 1 : -1;
  1473     r = da->mtime < db->mtime ? -1 : 1;
  1474 	else	
  1474 	else	
  1475 		r = stricmp(da->title[0] ? da->title : da->name, db->title[0] ? db->title : db->name);
  1475 		r = stricmp(da->title[0] ? da->title : da->name, db->title[0] ? db->title : db->name);
  1476 
  1476 
  1477 	if (_savegame_sort_order & 1) r = -r;
  1477 	if (_savegame_sort_order & 1) r = -r;
  1478 	return r;
  1478 	return r;