bugGNU Octave - Bugs: bug #47844, sortrows doc string inaccurate

 
 

bug #47844: sortrows doc string inaccurate

Submitter:  Francesco Potortì <pot>
Submitted:  Wed 04 May 2016 12:15:45 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 04 May 2016 09:25:20 PM UTC, comment #1: 

I improved the documentation in this cset (http://hg.savannah.gnu.org/hgweb/octave/rev/e47eb34f1b05).  I mentioned that the lexicographic sort only applies to string elements, and I added an example of how to use sortrows.

Rik <rik5>
Group administrator
Wed 04 May 2016 12:15:45 PM UTC, original submission:  

The doc string says:

====
-- Function File: [S, I] = sortrows (A, C)
Sort the rows of the matrix A according to the order of the columns specified in C.

If C is omitted, a lexicographical sort is used.  By default ascending order is used however if elements of C are negative then the corresponding column is sorted in descending order.
====

However, the bit about lexicographic order only makes sense for strings, and this should be specified.

Francesco Potortì <pot>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by pot (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-04 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code