docs: def sort(m, reverse=False):
      """Return sorted m (default: ascending order)"""
      ty = type(m)
      if ty == matrix:
          m = list(m)
      m = sorted(m, reverse=reverse)
      if ty == matrix:
          m = matrix(m)
      return m