diff --git a/modules/backend/behaviors/reordercontroller/assets/js/winter.reorder.js b/modules/backend/behaviors/reordercontroller/assets/js/winter.reorder.js index e3b5035352..de31c2aab9 100644 --- a/modules/backend/behaviors/reordercontroller/assets/js/winter.reorder.js +++ b/modules/backend/behaviors/reordercontroller/assets/js/winter.reorder.js @@ -69,8 +69,8 @@ this.initSortingSimple = function () { var sortOrders = [] - $('#reorderTreeList li').each(function(){ - sortOrders.push($(this).data('recordSortOrder')) + $('#reorderTreeList li').each(function(i) { + sortOrders.push(i); }) this.simpleSortOrders = sortOrders @@ -79,4 +79,4 @@ } $.wn.reorderBehavior = new ReorderBehavior; -}(window.jQuery); \ No newline at end of file +}(window.jQuery);