Skip to content

Commit 1e6123c

Browse files
committed
Fix Todos.
1 parent 40c8ee2 commit 1e6123c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Examples/Todos/Todos/Todos.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ let appReducer = Reducer<AppState, AppAction, AppEnvironment>.combine(
7272
.delay(0.1, on: environment.mainQueue)
7373

7474
case .sortCompletedTodos:
75-
state.todos.sortCompleted()
75+
state.todos.sort { $1.isComplete && !$0.isComplete }
7676
return .none
7777

7878
case .todo(id: _, action: .checkBoxToggled):

0 commit comments

Comments
 (0)