benn600
11-23-2007, 08:42 AM
I have a table of users with userName and userFullName for my site http://giftpathways.com
UserName is simply their login username. UserFullName is an optional field that I have a lot of code throughout my site that checks to see if it is in use and if so, uses it to print things.
In sorting, this is very troubling. I thought order by userFullName,userName would work but it doesn't! It just places the two parts in order but the parts are not ordered against each other.
Is there a way to say order by which ever field has a value? Or another solution? Thanks!
UserName is simply their login username. UserFullName is an optional field that I have a lot of code throughout my site that checks to see if it is in use and if so, uses it to print things.
In sorting, this is very troubling. I thought order by userFullName,userName would work but it doesn't! It just places the two parts in order but the parts are not ordered against each other.
Is there a way to say order by which ever field has a value? Or another solution? Thanks!