Jason, et al --

...and then Jason k Larson said...
% 
% There are many pre-defined functions to manipulate the sort order of 
% arrays and it's keys.  However sometimes, to fit special needs, you just 
% have to do it manually.  Here's the useful PHP reference manual links to 
% better understand what's available.
% 
% http://www.php.net/manual/en/ref.array.php
% 
% http://www.php.net/manual/en/function.asort.php
% http://www.php.net/manual/en/function.arsort.php
% 
% http://www.php.net/manual/en/function.ksort.php
% http://www.php.net/manual/en/function.krsort.php
% 
% http://www.php.net/manual/en/function.usort.php
% http://www.php.net/manual/en/function.uksort.php

Thanks for the pointers.  All of those are great (I hadn't read up on
asort yet; quite nice, and I may offer a "sort these pictures by name"
option based on that or a nat sort) but don't help me with the problem of
reordering keys based on a position, and I don't think I want to try
writing the sort function that will take arbitrary input and spit it back
out with the purpose of moving a single key around :-)


% 
% 
% HTH,
% Jason k Larson


Thanks & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg93749/pgp00000.pgp
Description: PGP signature

Reply via email to