Modify the order array when using sortable() (jqueryUI)
<p>I have a list I would sort thanks to the sortable fonction of jQueryUI:</p>

<pre><code>    &lt;ul id="list-cat"&gt;
        &lt;li id="cat_0" &gt;Coach&lt;/li&gt;
        &lt;li id="cat_1" &gt;Victory&lt;/li&gt;
        &lt;li id="cat_2" &gt;Defeat&lt;/li&gt; 
    &lt;/ul&gt; 
</code></pre>

<p>My script:</p>

<pre><code>    $("#list-cat").sortable({ 
        placeholder: 'highlight',
        update: function() {  
            var order = $('#list-cat').sortable('serialize');           
            $.post("my url...",order); 
            alert(order);   // displays for example "cat[]=1&amp;cat[]=0&amp;cat[]=2"
        }
      });
</code></pre>

<p>My url receives a $_POST['cat'] array with the $order as key and the $id_cat as value. I need to have the li value (Coach, Victory, etc) as array value instead of the $id_cat, is it possible ?</p>
