From bdfa780c224c3299f7f37a90e0b65dbb2d51cfba Mon Sep 17 00:00:00 2001 From: Trey t Date: Sun, 20 Feb 2022 20:24:03 -0600 Subject: [PATCH] reverse homeViewTwo sorting --- Shared/views/HomeView/HomeViewTwo/HomeViewTwo.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shared/views/HomeView/HomeViewTwo/HomeViewTwo.swift b/Shared/views/HomeView/HomeViewTwo/HomeViewTwo.swift index 03fb7bd..7a7f992 100644 --- a/Shared/views/HomeView/HomeViewTwo/HomeViewTwo.swift +++ b/Shared/views/HomeView/HomeViewTwo/HomeViewTwo.swift @@ -56,10 +56,10 @@ struct HomeViewTwo: View { settingsButtonView } LazyVStack(spacing: 5, pinnedViews: [.sectionHeaders]) { - ForEach(viewModel.grouped.sorted(by: { $0.key > $1.key }), id: \.key) { year, months in + ForEach(viewModel.grouped.sorted(by: { $0.key < $1.key }), id: \.key) { year, months in // for reach month - ForEach(months.sorted(by: { $0.key > $1.key }), id: \.key) { month, entries in + ForEach(months.sorted(by: { $0.key < $1.key }), id: \.key) { month, entries in Section() { homeViewTwoMonthListView(month: month, year: year, entries: entries) }