Function todo_lib::tsort::sort[][src]

pub fn sort(ids: &mut IDVec, todos: &TaskSlice, c: &Conf)
Expand description

The main entry for the todo list sorting.

The function sorts the provided list of todo IDs ids that is generated by filtering function or manually created. To compare todos, the function needs the entire list of them todos. The sorting is stable. All non-existing IDs are moved to the end.

  • ids - the list of todo IDs to sort
  • todos - the list of all todos
  • c - sorting rules