You are here: Re: Partial Sort ? « PHP Programming Language « IT news, forums, messages
Re: Partial Sort ?

Posted by Geoff Berrow on 06/20/07 07:34

Message-ID: <7ikh73p8vre66rj7tjhqkauovfku9jct4j@4ax.com> from comatose
contained the following:

>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?

Use a loop to copy first five to a temporary array, sort that array and
then replace into original using array_splice()
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация