I am trying to sort a multidimensional array by a custom sort order. I sounds like it's possible with usort() but I can't get it to work. Each array within the multidimensional array has a type "column" that is a numeric value.
I want them to be sorted in this order: 1,2,4,3 Can anyone provide me with an example of how to do this? The place where I am lost is that I'm supposed to compare A with B and return -1, 0, or 1. I get that part, but where do I incorporate my custom sort order? _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
