orders todos by priority