Jump to content

MYSQL ORDER


jaymc

Recommended Posts

I have the following fields in a DB

group
gender
username

I want the data to be ordered by the group, then by gender, then by username AZ

My aim is to have people in the highest group at the top but for people in the same group I want to have them orded by gender and then by username..

ORDER BY `group`, `gender`, `username` ASC doesnt work..
Link to comment
https://forums.phpfreaks.com/topic/34440-mysql-order/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.