This has me stumped. The follow code returns \",,,,,,\":
To use another attribute you can do this:
$('#element').sortable('toArray' {attribute: 'value'})
This will make it so it now uses the attribute 'value' from your code.
Documentation on Sortable toArray method