code: def __sort_stats(self, sortedby=None):
          
          return sort_stats(self.stats, sortedby,
                            reverse=glances_processes.sort_reverse)
docs: Return the stats (dict) sorted by (sortedby).