arguments: m:matrix degorder:int monorder:int>> intarray OR m:SparseMutableMatrix lo:int hi:int >> intarray
Return an integer array giving the permutation of columns required to sort the columns of 'm'. The order used is determined from the signs of degorder, monorder: if degorder is positive (negative), then the columns are sorted into ascending (descending) degree order. If degorder is 0, or for columns having the same degree, if monorder is positive (negative), then these columns are sorted in ascending (descending) monomial order. SECOND FORM: sort the columns lo..hi of 'm', and return the resulting permutation in the result, which is an array of length hi-lo+1. The sort order used is: zero vectors are least, then the row of the lead term is considered (higher lead terms are sorted later), finally, if the coefficients are ZZ, the absolute value is considered, or, if this is a polynomial ring, the (simple) degree is considered, with larger values sorted later. (CURRENTLY: no intarray is returned: the sort is simply performed 6/30/98).