[Numpy-svn] r3230 - trunk/numpy

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Sep 28 07:58:26 CDT 2006


Author: oliphant
Date: 2006-09-28 07:58:14 -0500 (Thu, 28 Sep 2006)
New Revision: 3230

Modified:
   trunk/numpy/add_newdocs.py
Log:
Update lexsort documentation a bit to give a hint as to how to use the keys to implement primary and secondary sorting

Modified: trunk/numpy/add_newdocs.py
===================================================================
--- trunk/numpy/add_newdocs.py	2006-09-28 12:49:01 UTC (rev 3229)
+++ trunk/numpy/add_newdocs.py	2006-09-28 12:58:14 UTC (rev 3230)
@@ -363,8 +363,10 @@
     key[0], then the resulting list of indices is further manipulated by
     sorting on key[1], and so forth. The result is a sort on multiple
     keys.  If the keys represented columns of a spreadsheet, for example,
-    this would sort using multiple columns.  The keys argument must be a
-    sequence of things that can be converted to arrays of the same shape.
+    this would sort using multiple columns (the last key being used for the
+    primary sort order, the second-to-last key for the secondary sort order, 
+    and so on).  The keys argument must be a sequence of things that can be 
+    converted to arrays of the same shape.
 
     """)
 



More information about the Numpy-svn mailing list