Skip to content

Commit

Permalink
* More OSD sorting criteria.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Mar 13, 2012
1 parent 2e76e3e commit 98a3035
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui_osd.c
Expand Up @@ -99,6 +99,12 @@ static int osd_sortCompare( const void *arg1, const void *arg2 )
return ret;
}

/* Compare on length. */
if (osd1->nitems > osd2->nitems)
return +1;
if (osd1->nitems < osd2->nitems)
return -1;

/* Compare ID. */
if (osd1->id > osd2->id)
return +1;
Expand Down

0 comments on commit 98a3035

Please sign in to comment.