         return arr_stsk.reversed()
     }f
 
+
     /*
      * public scheduleTask()
      * - Generate Schedule

        self.dataView.loadFromDB()
        var date = Date()
        var task = self.dataViewCtrl.sortedTask(sattr: PVRTaskSort.deadline)[0] //Closest Deadline
        var arr_stsk = Array<PVRTask>()

        //Iterate Tasks
        while date.compare(self.lastTaskDate() as Date) != ComparisonResult.orderedDescending && self.dataView.task.count > 0

    }

    /*
     * public func generateAllSubtask() -> [String:[PVRTask]]
     * - Generate subtasks from all tasks
     * [Return]
     * Dictionary<String,Array<PVRTask>> - Dictionary with key as task name and value as subtasks generated from task specfied by name
    */
    public func generateAllSubtask() -> [String:[PVRTask]]
    {
        //Prepare Data
        self.dataCtrl.updateTask()
