ORDER BY letters and not numbers of a field

Posted by Jon on Stack Overflow See other posts from Stack Overflow or by Jon
Published on 2010-06-10T02:37:41Z Indexed on 2010/06/10 2:42 UTC
Read the original article Hit count: 334

Filed under:
|

Is there a way to order mysql results by the first letter and ignore numbers? For example, I have a list of addresses:

  • 123 Main Street
  • 456 Second Street
  • 234 Third Street

and I want to order by the street name and ignore the street number. Is there an easy way to do this?

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql