title: JQuery Sort And Update Database
body: <p>I'm trying to present the user with a list of links (properties: Title, url, visible, order).  The list will display based upon their order.  The user will be able to drag these into the order they want, which will update the records in the database.  The user could also click a button that will sort based on the Title of the link (the text on the list item).</p>
  
  <p>I plan on using JQuery sorting for this:  <a href="http://jqueryui.com/demos/sortable/" rel="nofollow noreferrer">http://jqueryui.com/demos/sortable/</a></p>
  
  <p>However, I'm not sure how to go about saving the order in the database.  Should I update the records every time an item is moved, or should I save it all at the end?</p>
  
  <p>I also don't know how to go about the saving.  I'm thinking that I would either be using the stop or the update event documented at the aforementioned site.  Which do you recommend?</p>
  
  <p>Finally, I'm not sure how I would construct either the body of this event or the C# method signature to make the update (I'd be fine writing the code).  Any pointers or help would be appreciated.</p>