SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
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  
Old April 28th, 2008, 10:04 AM
da3533 da3533 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 3 da3533 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 5 sec
Reputation Power: 0
Question Database - Recordset - Sorting usernames - what comes first?

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??

Reply With Quote
  #2  
Old April 28th, 2008, 10:10 AM
BLarche BLarche is offline
Contributing User
Click here for more information.
 
Join Date: Jan 2007
Location: Indianapolis, USA
Posts: 3,039 BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 20 h 31 m 48 sec
Reputation Power: 469
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."

Reply With Quote
  #3  
Old April 28th, 2008, 10:46 AM
da3533 da3533 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 3 da3533 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 5 sec
Reputation Power: 0
Quote:
Originally Posted by BLarche
Why don't you run your query and find out for yourself?

Code:
strSQL = "SELECT * FROM MyTable ORDER BY UserName ASC/DESC"



lol. i dont use asp. i just need someone to run it for me.

Reply With Quote
  #4  
Old April 28th, 2008, 10:56 AM
BLarche BLarche is offline
Contributing User
Click here for more information.
 
Join Date: Jan 2007
Location: Indianapolis, USA
Posts: 3,039 BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)BLarche User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 20 h 31 m 48 sec
Reputation Power: 469
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?

Reply With Quote
  #5  
Old April 28th, 2008, 11:13 AM
da3533 da3533 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 3 da3533 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 5 sec
Reputation Power: 0
Quote:
Originally Posted by BLarche
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?


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

??

Reply With Quote
  #6  
Old April 28th, 2008, 11:45 AM
Wolffy's Avatar
Wolffy Wolffy is offline
Slaprentice of Wolves
Click here for more information.
 
Join Date: Aug 2007
Location: Mossville, IL
Posts: 1,015 Wolffy User rank is Major (30000 - 40000 Reputation Level)Wolffy User rank is Major (30000 - 40000 Reputation Level)Wolffy User rank is Major (30000 - 40000 Reputation Level)Wolffy User rank is Major (30000 - 40000 Reputation Level)Wolffy User rank is Major (30000 - 40000 Reputation Level)Wolffy User rank is Major (30000 - 40000 Reputation Level)Wolffy User rank is Major (30000 - 40000 Reputation Level)Wolffy User rank is Major (30000 - 40000 Reputation Level)Wolffy User rank is Major (30000 - 40000 Reputation Level)Wolffy User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 2 h 3 m 50 sec
Reputation Power: 329
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.

Reply With Quote
  #7  
Old April 28th, 2008, 11:50 AM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
The Drunken Moderator
Click here for more information.
 
Join Date: Feb 2004
Location: Reston, VA, USA
Posts: 12,944 jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 7th Grade (Above 100000 Reputation Level)  Folding Points: 76972 Folding Title: Intermediate FolderFolding Points: 76972 Folding Title: Intermediate FolderFolding Points: 76972 Folding Title: Intermediate FolderFolding Points: 76972 Folding Title: Intermediate Folder
Time spent in forums: 3 Months 2 Days 21 h 31 m 12 sec
Reputation Power: 1456
Facebook
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

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Database - Recordset - Sorting usernames - what comes first?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway