code: def oldest(self):
          if self._order_by == 'newest':
              return self.last
          if self._order_by == 'oldest':
              return self.first
          return min(self.entries, key=lambda x: (x.date, -x.id))