Also: * Creates placeholder parents for orphaned subtasks, grouping them together even though their parent isn't available. * Performs sorting of tasks in a simpler way. * Fixes mypy type warnings in tasks_tools.py so that mypy runs clean on this one file. See #194 for more info about type checking.