Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* More OSD sorting criteria.

  • Loading branch information...
commit 98a30353dbf71007b9fc6b2ac20f12e2780e3aac 1 parent 2e76e3e
@bobbens bobbens authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui_osd.c
View
6 src/gui_osd.c
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.