| Posted by Ivαn Sαnchez Ortega on 06/20/07 07:35 
comatose wrote:
 > if I have an array of ten items how can I sort the first five items in
 > the array without sorting the second five items?
 
 By using an user-defined sorting function.
 
 See http://php.net/usort
 
 You'll need to do some dirty tricks in that function to keep track of how
 many items you have sorted, to not sort those, but that should be the way..
 
 --
 ----------------------------------
 IvΓ‘n SΓ‘nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
 
 http://acm.asoc.fi.upm.es/~mr/ ; http://acm.asoc.fi.upm.es/~ivan/
 MSN:i_eat_s_p_a_m_for_breakfast@hotmail.com
 Jabber:ivansanchez@jabber.org ; ivansanchez@kdetalk.net
  Navigation: [Reply to this message] |