title: Re-ordering hash items to have some appear at the end
body: <p>I'm returning a hash of form inputs, which at the moment looks like:</p>
  
  <pre><code>hash = {
   "body"=&gt;:text,
   "button_text"=&gt;:string,
   "category"=&gt;:integer,
   "dashboard"=&gt;:boolean,
   "feature"=&gt;:integer,
   "featured_from"=&gt;:datetime,
   "featured_to"=&gt;:datetime,
   "global"=&gt;:boolean,
   "hyperlink"=&gt;:string,
   "jobs"=&gt;:boolean,
   "labs"=&gt;:boolean,
   "leaderboard"=&gt;:boolean,
   "management"=&gt;:boolean,
   "news"=&gt;:boolean,
   "objectives"=&gt;:boolean,
   "only_for_enterprise_users"=&gt;:boolean,
   "published_at"=&gt;:datetime,
   "title"=&gt;:string,
   "workflow_state"=&gt;:string
  }
  </code></pre>
  
  <p>I need to place the following keys at the end:</p>
  
  <pre><code>["dashboard", "jobs", "labs", "management", "news", "objectives", "global"]
  </code></pre>
  
  <p>Which will leave me with:</p>
  
  <pre><code>{
   "body"=&gt;:text,
   "button_text"=&gt;:string,
   "category"=&gt;:integer,
   "feature"=&gt;:integer,
   "featured_from"=&gt;:datetime,
   "featured_to"=&gt;:datetime,
   "hyperlink"=&gt;:string,
   "only_for_enterprise_users"=&gt;:boolean,
   "published_at"=&gt;:datetime,
   "title"=&gt;:string,
   "workflow_state"=&gt;:string,
   "dashboard"=&gt;:boolean,
   "jobs"=&gt;:boolean,
   "labs"=&gt;:boolean,
   "leaderboard"=&gt;:boolean,
   "management"=&gt;:boolean,
   "news"=&gt;:boolean,
   "objectives"=&gt;:boolean,
   "global"=&gt;:boolean
  }
  </code></pre>
  
  <p>All the links I've found relate to transforming keys / values without re-ordering, and outside of manually deleting each key and then reinserting I can't see another way of getting my desired output.</p>
  
  <p>Is there an easy way to achieve what I need? </p>
  
  <p>Thanks in advance</p>