Skip to main content
edited body
Source Link
eldo
  • 84.8k
  • 6
  • 94
  • 210

Define touryour own ordering function:

f[_, 0] := 1 f[0, _] := -1 f[x_, y_] := x <= y Sort[#, f] & /@ in // MatrixForm 

enter image description here

Define tour own ordering function:

f[_, 0] := 1 f[0, _] := -1 f[x_, y_] := x <= y Sort[#, f] & /@ in // MatrixForm 

enter image description here

Define your own ordering function:

f[_, 0] := 1 f[0, _] := -1 f[x_, y_] := x <= y Sort[#, f] & /@ in // MatrixForm 

enter image description here

Source Link
eldo
  • 84.8k
  • 6
  • 94
  • 210

Define tour own ordering function:

f[_, 0] := 1 f[0, _] := -1 f[x_, y_] := x <= y Sort[#, f] & /@ in // MatrixForm 

enter image description here