'Return the stats (dict) sorted by (sortedby)'

def __sort_stats(self, sortedby=None):

    return sort_stats(self.stats, sortedby, tree=glances_processes.is_tree_enabled(), reverse=glances_processes.sort_reverse)
