octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #65527] sort should produce an error for nonsc


From: anonymous
Subject: [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim
Date: Fri, 29 Mar 2024 08:25:28 -0400 (EDT)

Follow-up Comment #5, bug #65527 (group octave):

Sortrows only sorts the rows, not other dimensions.

To sort A along direction X, then Y to tiebreak X, then Z to tiebreak X and
Y:

A = sort (A, Z);
A = sort (A, Y);
A = sort (A, X);

Or combine all:

A = sort (sort (sort (A, Z), Y), X);



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65527>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]