     }
     
     private func updateUI(goal: GoalType, timeBucketData: [Goal]) {
+        
        let arrayData = timeBucketData.sort { $0.GoalName < $1.GoalName }
         switch goal {
         case .BudgetGoalString:

            self.updateUI(goaltype, timeBucketData: self.nogoArray)

        }
        
        GoalsRequestManager.sharedInstance.getGoalsOfType(goaltype , onCompletion: { (success, message, code, nil, goals, err) in
            if success {
                if let goalsUnwrap = goals {
                        self.updateUI(goaltype, timeBucketData: goalsUnwrap)
                }
            } else {
                Loader.Hide(self)

        super.viewWillAppear(animated)
        
        self.callActivityCategory()
        
        setDeselectOtherCategory()

        if let tabName = getViewControllerToDisplay(YonaConstants.nsUserDefaultsKeys.timeBucketTabToDisplay) as? String {
            switch tabName {
