Bug fix for specifying range of tasks. Sort tasks in numerical order when no tasks has been provided.