taskengine.js
function readTasks(err, data, callback) {
			this.tasks = JSON.parse(data);

			var sortedTasks = _.sortBy(this.tasks, function(task) { return parseInt(task.id, 10); });
			largestID = sortedTasks[sortedTasks.length-1].id;

			if(callback) {
				callback(err, this);
			}
		}
function readTasks(err, data, callback) {
			this.tasks = JSON.parse(data);

			var sortedTasks = _.sortBy(this.tasks, function(task) { return parseInt(task.id, 10); });
			largestID = sortedTasks[sortedTasks.length-1].id;

			if(callback) {
				callback(err, this);
			}
		}
function readTasks ( err , data , callback ) { this . tasks = JSON . parse ( data ) ; var sortedTasks = _ . sortBy ( this . tasks , function ( task ) { return parseInt ( task . id , 10 ) ; } ) ; largestID = sortedTasks [ sortedTasks . length - 1 ] . id ; if ( callback ) { callback ( err , this ) ; } }
Parse the tasks from a string and set the global tasks array

@param err
@param {String} data
@param {function} callback
@return {undefined}
Parse the tasks from a string and set the global tasks array