title: JS: How to update list items positions based on a new order/"list"?
body: <p>I have a  list with items and want to update the item's order based on an "array" (it proved to be an object, not an array) with ids in the updated order.</p>
  
  <p>It's "new_order" here:</p>
  
  <pre><code>$.post('/fetch/get_list', function(new_order)
  {
       // How should I handle new_order here?
  }
  </code></pre>
  
  <p>How do I change the current list order to the "new_order"?</p>
  
  <p>One idea would be to retrieve the entire list of HTML and all created with php. But I can't do like that in this case. The HTML that the current list consists of must be retained.</p>
  
  <p>So, I just want to update the order of the items in the current printed list. </p>
  
  <p>Hope you understand how I mean. :)</p>