Edit in JSFiddle

var myApp = angular.module('myApp', ['ui']);

myApp.controller('fooCtrl', function ($scope) {
    $scope.items = ['One', 'Two', 'Three'];

    $scope.sortableOptions = {
        stop: function (e, ui) {
            console.log($scope.items);
        },
        axis: 'x'
    };
});
<div ng-app="myApp" ng-controller="fooCtrl">
    <ul ui-sortable="sortableOptions" ng-model="items">
        <li ng-repeat="item in items">{{ item }}</li>
    </ul>
</div>

              

External resources loaded into this fiddle: