Add ORDER BY clause to problems#index query

The problems are not displayed in order.
Can we use the ORM for this? I'm not sure if this particular SQL query is vulnerable to SQL injection, but I'm uncomfortable with directly writing SQL queries: http://guides.rubyonrails.org/security.html#sql-injection