Refactored entire todo list.

Added function to adjust sort of list