sort#

swordfish.function.sort()#

Return a sorted vector/matrix in ascending/descending order.

参数:
  • X (Constant) -- A vector/matrix.

  • ascending (Constant, optional) -- A Boolean scalar indicating whether to sort X in ascending order or d escending order, by default DFLT.