Re: :order question

Keynan Pratt
Thu, 16 Aug 2007 22:58:03 -0000

Brien wrote:
> I''m new to rails, so excuse me if this is a silly/simple question
- It
> appears that rails is doing the annoying way of ordering items, with
> 10 - 19 following 1, 20-29 following 2, etcetera.
>
> Does anyone know of a way to make it logically order id''s?

The most likely reason for this is that you made the id column a string
in the database rather that making it an INT.
If this is not the case or you don''t understand please post the
migration/sql you used to create the table your selecting from. So we
can help further.

Keynan
--
Posted via http://www.ruby-forum.com/.