Re: [PHP] array_multisort into Natural order?

2010-12-14 Thread Richard Quadling
On 14 December 2010 10:50, Richard Quadling wrote: > On 13 December 2010 19:59, George Langley wrote: >> Hi all. Can use natsort($array1) to sort a single array of filenames into a >> "natural "alphanumeric order - 1.php, 2.php, 5.php, 10.php, 20.php, etc. >> But using array_multisort($array1, $

Re: [PHP] array_multisort into Natural order?

2010-12-14 Thread Richard Quadling
On 13 December 2010 19:59, George Langley wrote: > Hi all. Can use natsort($array1) to sort a single array of filenames into a > "natural "alphanumeric order - 1.php, 2.php, 5.php, 10.php, 20.php, etc. > But using array_multisort($array1, $array2, $array3) doesn't offer a natsort > option, so I

Re: [PHP] array_multisort into Natural order?

2010-12-13 Thread George Langley
if so, can that use the natsort()? I don't think an asort() can do either. Note that the original source of this info is a mySQL db call, and it is initially sorted in the query, but again, there doesn't appear to be a way to natural sort an SQL query either. So I get file1, file10, fil

Re: [PHP] array_multisort into Natural order?

2010-12-13 Thread Jim Lucas
On 12/13/2010 11:59 AM, George Langley wrote: > Hi all. Can use natsort($array1) to sort a single array of filenames into a > "natural "alphanumeric order - 1.php, 2.php, 5.php, 10.php, 20.php, etc. > But using array_multisort($array1, $array2, $array3) doesn't offer a natsort > option, so I end

Re: [PHP] array_multisort ... unsupported in different builds?

2003-09-28 Thread john
[0][i].""; echo $slack[0][hate].""; echo $slack[0][dodgy].""; echo $slack[0][problems].""; result; 1 stuff1 blah1 meh1 - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, 29

Re: [PHP] array_multisort ... unsupported in different builds?

2003-09-28 Thread Jason Wong
On Monday 29 September 2003 00:12, john wrote: > short version; > array_multisort works on localhost but when i upload it, ceases to work > (array is left unsorted) [snip] Could you post a concise example which illustrates your problem? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz

[PHP] array_multisort ... unsupported in different builds?

2003-09-28 Thread john
ok, heres the thing short version; array_multisort works on localhost but when i upload it, ceases to work (array is left unsorted) long version; i have array_multisort sorting a multi dimensional array with sort_asc. i understand that it sorts by the first index by default. on my localhost (ii

Re: [PHP] array_multisort?

2002-01-02 Thread Kevin Stone
op = array ($product[1], $product[0], $product[2]); -Kevin - Original Message - From: "Sebastiaan Timmers - Bean IT" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 02, 2002 6:47 AM Subject: [PHP] array_multisort? > Hi List, > > I'

[PHP] array_multisort?

2002-01-02 Thread Sebastiaan Timmers - Bean IT
Hi List, I'm having a problem sorting the following array: $product = array($id, $title, $price); $shop[] = $product; I want the array 'shop' to be sorted by the 'title' in array 'product'. I tried the function 'array_multisort()', but that did not do the trick. Does anyone know how to fix t

Re: [PHP] array_multisort

2001-09-26 Thread Brian White
Ok. As far as I can tell from your example - you have a single multidimensional array. From my reading of array_multisort it looks like it is supposed to sort multiple arrays that happen to be the same length, which is a little different. Conceptually, what I think you have is an array of records

[PHP] array_multisort

2001-09-26 Thread Richard Baskett
Ok i've gone through the archives.. and you know.. I don't think anybody really understands this function. I hope I am wrong, but here goes. I have an array called let's say.. $results first dimension are just numbers and the second has associative names [name],[title],[descript],[keycount] so b