This has me stumped. The follow code returns \",,,,,,\":
$('.sortable').sortable('toArray'); will only parse the first element of the class sortable. You can parse all elements by using each:
$('.sortable').each(function(){ result.push($(this).sortable('toArray')); })