Re: array.sorting.php
| From: | David OBrien | Date: | Tue, 04 Sep 2012 17:18:50 +0000 |
| Subject: | Re: array.sorting.php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-318982@lists.php.net to get a copy of this message | ||
On Tue, Sep 4, 2012 at 1:15 PM, John Taylor-Johnston <
jt.johnston@usherbrooke.ca> wrote:
> Hi,
> Sorting question.
> http://www.php.net/manual/en/**array.sorting.php<http://www.php.net/manual/en/array.sorting.php>
> I'm using ksort, which sorts like this.
> I don't want to use strolower.
> Is there a function/switch in one of the sort functions where I could get
> another aphabetical sort?
>
>
> http://www.php.net/manual/en/**array.sorting.php<http://www.php.net/manual/en/array.sorting.php>has
> a lot of options. I,m not sure which one I should choose.
>
> This is what I get:
>
> LABRADOR CITY
> LACOSTA
> LARGE
> Labrador
> Labrador City
> Labrador Sea
> Lacosta
> Large
> labrador
> labrador sea
> lacosta
> large
>
>
> This is what I want:
>
> LABRADOR
> Labrador
> labrador
> LABRADOR CITY
> Labrador City
> Labrador Sea
> labrador sea
> LACOSTA
> Lacosta
> lacosta
> LARGE
> Large
> large
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
natsort
natcasesort