Fix order clause so it runs on Rails 3.2 and MySQL

ActiveRecord/Arel 3.2 does not escape the order clause, resulting in a SQL syntax error on MySQL 5.5.35
Merge pull request #18 from mdh/patch-1

Fix order clause so it runs on Rails 3.2 and MySQL