allows users to add priority to tasks with logic in the list file to allow for future sorting by priority
returns sorted tasks with priority of lowest number to highest number