Sorting data alphabetically
| From: | Ben Wiechman | Date: | Thu, 14 Dec 2000 22:43:23 +0000 |
| Subject: | Sorting data alphabetically | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30379@lists.php.net to get a copy of this message | ||
I'm working on a PHP/MySQL solution and I would like to sort the output of
my select statement in alphabetic order.
I have a table with the following data
id - int
parent_id - int
name - name of item
I would like to sort the data alphabetically by name before I print the data
to the screen. Is there some way I can do this with my select statement (and
I tried to rtfm... lol But I'm pretty new to this.) Or am I going to have to
build the output array in PHP somehow and sort it there?
Ben