Jump to content

How to Alphabetize by multiple fields


Darkmatter5

Recommended Posts

I have a database with a table called Clients.  It has two specific fields, LastName and CompanyName.  I know I can alphabetize by LastName in ascending order and then by CompanyName, but how could I alphabetize by LastName and CompanyName in ascending order at the same time.  So company names and last names are all sorted together.  Example.

 

Anderson

Belarc, Inc.

Smith

Farlow

Zooteck & Co.

 

Link to comment
https://forums.phpfreaks.com/topic/128780-how-to-alphabetize-by-multiple-fields/
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.