I currently have the following files in my app:
image1.jpg
image2.jpg
image3.jpg
...
image10.jpg
...
image20.jpg
However, when I try to query them in Rails (hopefully achieving the same order as above), I get the following order:
image10.jpg
image11.jpg
...
image19.jpg
image1.jpg
image20.jpg
Here is the method I am using:
Image.order("picture_file_name ASC")
Is it possible to display them in the same order as the first option?
Thanks!