Here we're doing some sorting of complex values using Java Comparator
s.
An array of six structs is created, each with a random letter and random date inside. That's
what's dumped in the first column. The rest of the columns show the same array sorted in
different ways.
On Railo 3.0.0.002 and below only, no sorting happens. There is
a bug (which has been resolved) that prevents
Collections.sort
from making changes to the array being sorted. Later versions of Railo
do not have this problem.
Randomized | Letter (CFML) | Letter (closure) | Date DESC (class) |
---|---|---|---|
|
|
|
|
The raw array of structs