Re: Sorting a PHP array

Richard Quadling <[email protected]>
Newsgroups gmane.comp.php.database
Message-ID <CAKUjMCUAAQ+arnALei_Bp-EQ-802w47V6uAV3BB0ft8PXULsjg@mail.gmail.com>
I have an inline result set sorting function (array_multisort_by_columns()
sort of thing) as array_multisort wants the data in columns for sorting.

I can supply it if anyone wants it.


On 16 May 2013 12:57, Jim Giner <[email protected]> wrote:

> On 5/15/2013 1:38 PM, Bastien wrote:
>
>>
>>
>> Bastien Koert
>>
>> On 2013-05-15, at 12:32 PM, "Charlie Lewis" <[email protected]>
>> wrote:
>>
>>  I have a bookseller database list read into a PHP array with dimensions
>>> [row][field]. There are 32 fields in each record/row and up to 500
>>> records.
>>>
>>>
>>>
>>> What is the neatest way to sort the array by any of the fields, such as
>>> author or title?
>>>
>>>
>>>
>>> I know I should just search for a manual on this, but could anybody give
>>> me
>>> a quick start?
>>>
>>>
>>>
>>> Thanks,
>>>
>>>
>>>
>>> Charlie
>>>
>>>
>> Mildly annoyed by your laziness so ima gonna point you to the manual
>>
>> http://ca1.php.net/manual/en/**function.array-multisort.php<http://ca1.php.net/manual/en/function.array-multisort.php>
>>
>> Bastien
>>
>>>
>>>
>>  I learned something.  Never read up on this function.  Could be useful
> someday....
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Richard Quadling
Twitter : @RQuadling
EE : http://e-e.com/M_248814.html
Zend : http://bit.ly/9O8vFY
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.