diff liboctave/Array2.h @ 7463:2467639bd8c0

eliminate UNDEFINED sort mode
author John W. Eaton <jwe@octave.org>
date Fri, 08 Feb 2008 16:00:16 -0500
parents 402168152bb9
children 8c32f95c2639
line wrap: on
line diff
--- a/liboctave/Array2.h	Fri Feb 08 12:30:39 2008 +0100
+++ b/liboctave/Array2.h	Fri Feb 08 16:00:16 2008 -0500
@@ -116,14 +116,14 @@
       return Array2<T> (tmp, tmp.rows (), tmp.columns ());
     }
 
-  Array2<T> sort (octave_idx_type dim = 0, sortmode mode = UNDEFINED) const
+  Array2<T> sort (octave_idx_type dim = 0, sortmode mode = ASCENDING) const
     {
       Array<T> tmp = Array<T>::sort (dim, mode);
       return Array2<T> (tmp, tmp.rows (), tmp.columns ());
     }
 
   Array2<T> sort (Array<octave_idx_type> &sidx, octave_idx_type dim = 0,
-		 sortmode mode = UNDEFINED) const
+		 sortmode mode = ASCENDING) const
     {
       Array<T> tmp = Array<T>::sort (sidx, dim, mode);
       return Array2<T> (tmp, tmp.rows (), tmp.columns ());