Results 1 to 2 of 2

Thread: Sort Order

  1. #1
    Join Date
    Aug 2009
    Posts
    1

    Unanswered: Sort Order

    I have a simple sort order on a int coloum but it is counting strange.

    Ej.
    1,10,11,12,13,14,15,16,17,18,19,2,20, ...

    I would like it if it could be
    1, 2, 3, 4, 5, 6, ...


    my Query
    SELECT * FROM TABLE ORDER BY my_Num DESC

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    look again -- if that's how it's sorting, then it's ~not~ an INTEGER column
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •