refactor(sortable): replace for-in-hasOwnProperty with angular.forEach

This also brings code coverage back to 100%.