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

Home » Public Forums » archive » Sort an Array of Structures...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Sort an Array of Structures... [message #34190] Thu, 20 February 2003 16:22
v3ctr4 is currently offline  v3ctr4
Messages: 1
Registered: February 2003
Junior Member
Hi all, i've an array of structures like that:

X = 5
Y = 5
Z = 5
dumb_struct = { dumb_struct, a: 0, b: 1.0, c: 0 }
dd = REPLICATE(dumb_struct, X, Y, X)

how can i order the array in ONE variable, say something like
dd[*,3,3] ordered by the "a" value of each element?

it's correct someting like this?
dd = dd(SORT(dd[*,3,3].a))

please help me!


thx! vectra...
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Check if coordinate is in array
Next Topic: Re: Sort an Array of Structures...

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

Current Time: Wed Oct 08 15:17:54 PDT 2025

Total time taken to generate the page: 0.11445 seconds