reverse homeViewTwo sorting
This commit is contained in:
@@ -56,10 +56,10 @@ struct HomeViewTwo: View {
|
|||||||
settingsButtonView
|
settingsButtonView
|
||||||
}
|
}
|
||||||
LazyVStack(spacing: 5, pinnedViews: [.sectionHeaders]) {
|
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
|
// 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() {
|
Section() {
|
||||||
homeViewTwoMonthListView(month: month, year: year, entries: entries)
|
homeViewTwoMonthListView(month: month, year: year, entries: entries)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user