reverse homeViewTwo sorting

This commit is contained in:
Trey t
2022-02-20 20:24:03 -06:00
parent 1d1afab0f9
commit bdfa780c22

View File

@@ -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)
}