diff --git a/src/m_menu.c b/src/m_menu.c index 15309dd2d..c2978fe82 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -4170,6 +4170,8 @@ static int ReplayListSortComparator(const void *entry1, const void *entry2) return -1; else if (demo2->type == MD_SUBDIR && demo1->type != MD_SUBDIR) return 1; + else if (demo1->type == MD_SUBDIR && demo2->type == MD_SUBDIR) + return 0; memcpy(filepath1, demo1->filepath, sizeof(filepath1)); memcpy(filepath2, demo2->filepath, sizeof(filepath2));