title: How to sort View results programmatically?
body: <p>I'm trying to take the results of a view - using the function <code>views_get_view_result()</code> - and sort the array in a way I couldn't do from within the Views interface. So far so good. I've got a $rows variable with all of the stuff I need.</p>
  
  <p>Now... How do I put it back? :) Before I needed this sort, I used <code>views_embed_view()</code>, but I can't do that anymore.</p>
  
  <p>Grateful for any help on this, feels like I'm so close to cracking it!</p>
  
  <pre><code>$important_var = important_function();
  $result = views_get_view_result($view, $display, $args);
  $result = sorting_function($result, $important_var);
  
  //TODO: Put the result back into the view
  </code></pre>