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

 
 

bug #47844: sortrows doc string inaccurate

Submitted by:  Francesco Potortì <pot>
Submitted on:  Wed 04 May 2016 12:15:45 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Documentation
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.0.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 04 May 2016 09:25:20 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1