title: Is there a way to sort an object that has multiple attribute types by a single type?
body: <p>I have an animal model with the following attributes.</p>
  
  <pre><code>name: string
  sex: string
  acquired_at: datetime
  fed_at: datetime
  groomed_at: datetime
  played_with: datetime
  slept_at: datetime    
  sold_at: datetime
  </code></pre>
  
  <p>and I want to display the column with the most recent datetime, but only for the fed, groomed, slept, and play columns, which will be constantly changing with the most recent times. Is there a way to get the object like <code>Animal.last</code> and get the column with the most recent datetime out of the 4 columns? </p>
  
  <p>Right now I just have an if statement that checks the 4 columns against each other but it seems long and unnecessary. </p>