GridView.Sort <> SQL 'ORDER BY'. what's up with that?!?

R

Ryan H

Given 2 records with 1 'Name' column (varchar):
"Tri-Star"
"Triangle"

GridView.Sort("Name", SortDirection.Ascending) will sort the records like
so:
1. "Triangle"
2. "Tri-Star"

While a standard SQL 'SELECT * FROM MyTable ORDER BY Name ASC' will sort the
records like so:
1. "Tri-Star"
2. "Triangle"

This is lame. Is there a fix for this?
 
C

Cowboy \(Gregory A. Beamer\)

Sort in SQL? :)

Currently, I know of no other fix for the problem.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*********************************************
Think outside the box!
*********************************************
 
R

Ryan H

Oh well. I like your books btw.



Cowboy (Gregory A. Beamer) said:
Sort in SQL? :)

Currently, I know of no other fix for the problem.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*********************************************
Think outside the box!
*********************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top