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

Home » Public Forums » archive » Re: sort arrays based on names
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: sort arrays based on names [message #71369] Thu, 17 June 2010 13:04 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jun 17, 4:39 pm, Hassan <hkhav...@gmail.com> wrote:
> when I use Sort() it returns me integer values instead of sorting
> strings.

sort() gives the indexes of the elements in the order that would make
the array sorted. That is:

s=sort(a) ;Finds the sort order for array a
b=a[s] ;b is a sorted
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SAVE compress and Gzip
Next Topic: recursive FILE_SEARCH in a symbolic link ?

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

Current Time: Wed Oct 08 13:32:25 PDT 2025

Total time taken to generate the page: 0.00715 seconds