mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-30 09:05:44 +02:00
Sort also by idle time when sorting by watchers.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@543 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
cb781bc3d6
commit
dc40fe10a1
@ -446,7 +446,7 @@ sort_game_watchers(const void *g1, const void *g2)
|
||||
const struct dg_game *game2 = *(const struct dg_game **)g2;
|
||||
int i = dglsign(game2->nwatchers - game1->nwatchers);
|
||||
if (!i)
|
||||
i = strcmp(game1->time, game2->time);
|
||||
i = dglsign(game2->idle_time - game1->idle_time);
|
||||
if (!i)
|
||||
return strcasecmp(game1->name, game2->name);
|
||||
return i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user