If you want to stay within Perl to do this, you could use the Perl sort function. It allows you to write what is basically an anonymous sub to let you sort anyway you want. Of couse, this puts a constraint on your data structure to an array but if all the attributes are always in the same order then it does not make much difference.
In reply to Re: Advice - storing data - which structure do you recommend? (details inside)
by cyocum
in thread Advice - storing data - which structure do you recommend? (details inside)
by Kratimoyporroon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |