diff --git a/source/menu-list.c b/source/menu-list.c index 848ef3a..30531ba 100644 --- a/source/menu-list.c +++ b/source/menu-list.c @@ -81,7 +81,7 @@ static int menuEntryCmp(const void *p1, const void *p2) return lhs->isStarred ? -1 : 1; if(lhs->type == rhs->type) return strcasecmp(lhs->name, rhs->name); - if(lhs->type == ENTRY_TYPE_FOLDER) + if(lhs->type != ENTRY_TYPE_FOLDER) return -1; return 1; }