title: Order by string name from database
body: <p>I stored string variables in a database, either 'Abstain', 'Block', 'No', or 'Yes'. Currently I am grabbing these using an <code>ORDER BY position</code> however, instead of alphabetic order, I would like to order them like: 'Block', 'No', 'Abstain', 'Yes'. Is there an easy way to do this in Rails?</p>
  
  <p>My exact code for this is:</p>
  
  <pre><code>def self.unique_votes(motion)
    Vote.find_by_sql("SELECT * FROM votes a WHERE created_at = (SELECT MAX(created_at) as created_at FROM votes b WHERE a.user_id = b.user_id AND motion_id = #{motion.id}) ORDER BY a.position")
  end
  </code></pre>
  
  <p>NB: I am using Postgres SQL and am looking for a solution that i can use in the select statement Thanks!</p>