Login  Register

Sorting arrays

Posted by Alex-2 on Sep 20, 2017; 8:57pm
URL: http://imagej.273.s1.nabble.com/Sorting-arrays-tp5019415.html

Hi all,
I have a series of file names in an array that I'm trying to sort with imagej macro language.

expt1-c1-f

expt1-c1-t

expt1-c1-v

expt1-c2-f

expt1-c2-t

expt1-c2-v


I'd like to sort the array like this

expt1-c1-t

expt1-c1-v

expt1-c1-f

expt1-c2-t

expt1-c2-v

expt1-c2-f


Further, I'd prefer to be able to specify the order of the sort : e.g. specify [t, v, f] or [f, t, v] or [v, f, t], etc.


Sent from Yahoo Mail for iPhone

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html