comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Inconsistency: "sort" on UNIX <-> Windows
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Inconsistency: "sort" on UNIX <-> Windows [message #21047 is a reply to message #20542] Fri, 04 August 2000 00:00 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
here is another sort method from our library too.

http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/n_sort.tar.gz

; NAME:
; n_sort
;
; PURPOSE:
; sort an array according to n columns
;
; CATEGORY:
; MATH
;
; CALLING SEQUENCE:
; result=n_sort(matrix)
;
; INPUTS:
; matrix : the input matrix, which shoul be sorted
;
; KEYWORD PARAMETERS:
; INDEX: a vector of column numbers (default: indgen(number of
columns))
; it defines the order of the columns, how the matrix will be
sorted
;
; DECREASING_ORDER: the matrix will be sorted decreasingly
;
; OUTPUTS:
; j_index: the vector of sorted line numbers
;
; EXAMPLE:
; matrix = [[ 2, 3, 4 ], $
; [ 1, 4, 6 ], $
; [ 1, 4, 5 ]]
; j_index=n_sort(matrix)
; j_index=[2,1,0]
;
; matrix = [[ 1, 4, 5 ], $
; [ 1, 4, 6 ], $
; [ 2, 3, 4 ]]
; j_index=n_sort(matrix,index=[1,0,2])
; j_index=[2,0,1]

Reimar Bauer
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: User-added Postscript fonts
Next Topic: Strange PRINTER Coordinates

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Nov 29 19:48:16 PST 2025

Total time taken to generate the page: 0.71995 seconds