Page 1 of 1

Sort an Array?

Posted: Fri Jun 20, 2008 1:34 pm
by bjb007
Is there a command/function in Rev
to sort an array?

Tried "sort container" and various
combinations of "combine" but nothing
works for me.

Posted: Fri Jun 20, 2008 1:37 pm
by rozek
Well,

it seems as if you would have to "combine" the array into a list, sort that and "split" the result into an array again...

If you are uncertain about the contents of your array, you may additionally use URLencode and URLdecode - although your code might become inefficient then.

Posted: Fri Jun 20, 2008 8:12 pm
by bjb007
rozek
Confirms my deduction too but the
"combine" function includes a sort
line...

"sort lines of monthlyReceivables by item 2 of each"

but can't get it to do anything.

Some array functions are available in
RevOnline as LibArrayUtil 1.0 under
user benJam.

It's no longer supported and the
pdf isn't available from the link given
but Ben kindly sent me a copy. If you'd like
it let me know.