summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/main.lua b/main.lua
index 4fd6a8b..015b43d 100644
--- a/main.lua
+++ b/main.lua
@@ -483,18 +483,18 @@ local function sort_options(options)
local a_name = a.name
local b_name = b.name
- if a.type == 'group' then
+ if favourites[a.id] then
+ a_name = '\0\0' .. a_name
+ end
+ if a.type == 'group' and a.group_type ~= 'series' then
a_name = '\0' .. a_name
- if a.id == 'favourites' then
- a_name = '\0' .. a_name
- end
end
- if b.type == 'group' then
+ if favourites[b.id] then
+ b_name = '\0\0' .. b_name
+ end
+ if b.type == 'group' and b.group_type ~= 'series' then
b_name = '\0' .. b_name
- if b.id == 'favourites' then
- b_name = '\0' .. b_name
- end
end
return a_name < b_name