From 2b3bd41928bfce530b1006b9b6ecf7af3ba6cf05 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Wed, 25 Jan 2023 13:07:53 +0100 Subject: [PATCH] Fix lists and tags sorting regardless of the casing --- IceCubesApp/App/Tabs/Timeline/TimelineTab.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IceCubesApp/App/Tabs/Timeline/TimelineTab.swift b/IceCubesApp/App/Tabs/Timeline/TimelineTab.swift index 02169e14..8e1b9a23 100644 --- a/IceCubesApp/App/Tabs/Timeline/TimelineTab.swift +++ b/IceCubesApp/App/Tabs/Timeline/TimelineTab.swift @@ -83,7 +83,7 @@ struct TimelineTab: View { } } if !currentAccount.lists.isEmpty { - let sortedLists = currentAccount.lists.sorted { $0.title < $1.title } + let sortedLists = currentAccount.lists.sorted { $0.title.lowercased() < $1.title.lowercased() } Menu("timeline.filter.lists") { ForEach(sortedLists) { list in Button { @@ -96,7 +96,7 @@ struct TimelineTab: View { } if !currentAccount.tags.isEmpty { - let sortedTags = currentAccount.tags.sorted { $0.name < $1.name } + let sortedTags = currentAccount.tags.sorted { $0.name.lowercased() < $1.name.lowercased() } Menu("timeline.filter.tags") { ForEach(sortedTags) { tag in Button {