|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
hey,
i am newbie and want to know how it sorts the usernames from ascending order. if i have usernames: ..gary .henry ___david !!!barry which will come first in the list when sorted?? |
|
#2
|
|||
|
|||
|
Why don't you run your query and find out for yourself?
Code:
strSQL = "SELECT * FROM MyTable ORDER BY UserName ASC/DESC"
__________________
"You'll never be as perfect as BLaaaaaaaaarche." |
|
#3
|
|||
|
|||
|
Quote:
lol. i dont use asp. i just need someone to run it for me. |
|
#4
|
|||
|
|||
|
So let me get this straight, you don't use ASP but you are wondering what the sort order would be? Why do you care if you are not a programmer? Is this for a school assignment?
|
|
#5
|
|||
|
|||
|
Quote:
yes it is. i use php mysql. but wanted to see if its the same when sorting. ok, what comes first a hyphen at the begining of the username or a a fulstop? i.e. -----dave or .........dave ?? |
|
#6
|
||||
|
||||
|
Suggest you find the ASCII or UniCode representation of the hyphen and full stop and see for yourself -- Google is a wonderful tool for this.
You do realize this is an ASP forum.
__________________
Wolffy ------------------------ Teaching people to fish. |
|
#7
|
||||
|
||||
|
How textual items are sorted has to do with collation, which is usually specific to a particular language like English or German. For example, while two languages may both use the ISO-8859-1 encoding, there may be characters that are sorted differently.
Needless to say, this isn't really programming language-specific, rather, based on the encoding and language used.
__________________
jmurrayhead Did I help you out? Make me popular by clicking the icon!New Members:Proper way to post a question Powered by ASP.Net |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Database - Recordset - Sorting usernames - what comes first? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|