Skip to content

Commit

Permalink
fix: sort tasks by descending date created (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba authored Dec 7, 2024
1 parent 6083dc9 commit 4cb8f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Screens/Task/TaskStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class TaskStore: ObservableObject {
}

private func fetchList(page: Int = 1, size: Int = Constants.pageSize) async throws -> VOTask.List? {
try await taskClient?.fetchList(.init(page: page, size: size))
try await taskClient?.fetchList(.init(page: page, size: size, sortBy: .dateCreated, sortOrder: .desc))
}

func fetchNextPage(replace: Bool = false) {
Expand Down

0 comments on commit 4cb8f88

Please sign in to comment.