Angular-JS ui-sortable bound to model

Let's say you have a list of items that are rendered 3x per row, like:

<div ng-repeat="piece in fooService.get()" class="span3">

And you want to be able to sort them. The only way I have found is to wrap with:

<div ui-sortable>

Which works, but does not bind to the model.

What am I missing?

You have to pass the ng-model as well: See the below fiddle i found googling:

http://jsfiddle.net/g/hKYWr/

Edit Reference: http://plnkr.co/edit/Bzjruq?p=preview

I share with you my own directive:

http://pabloezequiel.github.io/PLSortableUI/