Sort child todo items deterministically.
sorted() was run on a list of Todo objects, which may produce different results. Instead, sort on the item's number (i.e. its index in the TodoList). This should fix the occasional failing of test_do_subtasks2.
Showing
Please register or sign in to comment