title: Sortable table using knockout.js and jqueryUI
body: <p>I'm trying to create a sortable table using knockout.js and jqueryUI but not sure if I'm using a wrong approach.
  I'm using the following JSON structure for my data: </p>
  
  <pre><code>{
                 "columns":[
                    "Header 1",
                    "Header 2",
                    "Header 3"
                 ],
                 "rows":[
                    {
                       "Values":[
                          "Col1Item0",
                          "Col2Item0",
                          "Col3Item0"
                       ]
                    },
                    {
                       "Values":[
                          "Col1Item1",
                          "Col2Item1",
                          "Col3Item1"
                       ]
                    },
                    {
                       "Values":[
                          "Col1Item2",
                          "Col2Item2",
                          "Col3Item2"
                       ]
                    },
                    {
                       "Values":[
                          "Col1Item3",
                          "Col2Item3",
                          "Col3Item3"
                       ]
                    },
                    {
                       "Values":[
                          "Col1Item4",
                          "Col2Item4",
                          "Col3Item4"
                       ]
                    },
                    {
                       "Values":[
                          "Col1Item5",
                          "Col2Item5",
                          "Col3Item5"
                       ]
                    }
                 ]
              }
  </code></pre>
  
  <p>I have no problem binding this to the table and displaying it. I can enable sortable using jqueryUI sortable event, but when it's time to collect the results I'm stuck. I found some resources on how to sort the list but nothing on sorting the table. The expected outcome of the sort would be a re-arranged JSON structure I provided with the correct sort order.</p>
  
  <p>I've attempted using ko.toJSON(this) to save the result in the hidden field on the page but currently getting an exception. Is there something I'm missing? 
  I created a project in fiddle, in case anyone wants to take a look: <a href="http://jsfiddle.net/Nikita1984/bFSbR/" rel="nofollow">http://jsfiddle.net/Nikita1984/bFSbR/</a></p>