Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

order by all the words in a sentence

select varcharColumn order by varcharColumn

this is only ordering by first word

how to order by entire sentence
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

getting

a c
a a
a b
a d
b
c


want this order

a a
a b
a c
a d
b
c


but I think the sort is only only on the first word before the space
with really that data? I must doubt that, so you might want to show the "correct" data resp the script to reproduce that behaviour
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

thank you
by telling me that this is not possible,
I checked my data and saw that some columns had additional spaces