{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2525","labels_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2525/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2525/comments","events_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2525/events","html_url":"https://github.com/angular-ui/ng-grid/issues/2525","id":53894710,"number":2525,"title":"cellClass row index not changing on sort","user":{"login":"furier","id":776919,"avatar_url":"https://avatars.githubusercontent.com/u/776919?v=3","gravatar_id":"","url":"https://api.github.com/users/furier","html_url":"https://github.com/furier","followers_url":"https://api.github.com/users/furier/followers","following_url":"https://api.github.com/users/furier/following{/other_user}","gists_url":"https://api.github.com/users/furier/gists{/gist_id}","starred_url":"https://api.github.com/users/furier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furier/subscriptions","organizations_url":"https://api.github.com/users/furier/orgs","repos_url":"https://api.github.com/users/furier/repos","events_url":"https://api.github.com/users/furier/events{/privacy}","received_events_url":"https://api.github.com/users/furier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-09T17:48:18Z","updated_at":"2015-01-09T20:12:21Z","closed_at":null,"body":"cellClass row index does not changing on sort.\r\n\r\nBy that I mean that whenever I sort a column on its value the cellClass sticks to the original cell and does not follow the value.\r\n\r\n[Youtube video of the bug](https://www.youtube.com/watch?v=cQyc9qXYUQM)\r\n\r\n    var utils = {\r\n        colorizeNumbers: function (grid, row, col, rowRenderIndex, colRenderIndex) {\r\n            var value = grid.getCellValue(row, col);\r\n            if (value < 0) {\r\n                return 'red selectable';\r\n            }\r\n            else if (value > 0) {\r\n                return 'green selectable'\r\n            }\r\n        }\r\n    };\r\n\r\n    $scope.playerBalanceGridOptions = {\r\n        enableSorting: true,\r\n        enableFiltering: true,\r\n        pagingPageSizes: [10, 20, 30],\r\n        pagingPageSize: 20,\r\n        columnDefs: [\r\n            {field: 'name', cellClass: 'selectable'},\r\n            {field: 'hassium', cellClass: utils.colorizeNumbers, cellFilter: 'numeral'},\r\n            {field: 'indium', cellClass: utils.colorizeNumbers, cellFilter: 'numeral'},\r\n            {field: 'strontium', cellClass: utils.colorizeNumbers, cellFilter: 'numeral'},\r\n            {field: 'neodymium', cellClass: utils.colorizeNumbers, cellFilter: 'numeral'},\r\n            {field: 'total', cellClass: utils.colorizeNumbers, cellFilter: 'numeral'}\r\n        ],\r\n        data: ad2460.allianceData.playerBalance\r\n    };"},"comment":{"url":"https://api.github.com/repos/angular-ui/ng-grid/issues/comments/69391717","html_url":"https://github.com/angular-ui/ng-grid/issues/2525#issuecomment-69391717","issue_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2525","id":69391717,"user":{"login":"PaulL1","id":5248789,"avatar_url":"https://avatars.githubusercontent.com/u/5248789?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulL1","html_url":"https://github.com/PaulL1","followers_url":"https://api.github.com/users/PaulL1/followers","following_url":"https://api.github.com/users/PaulL1/following{/other_user}","gists_url":"https://api.github.com/users/PaulL1/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulL1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulL1/subscriptions","organizations_url":"https://api.github.com/users/PaulL1/orgs","repos_url":"https://api.github.com/users/PaulL1/repos","events_url":"https://api.github.com/users/PaulL1/events{/privacy}","received_events_url":"https://api.github.com/users/PaulL1/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T20:12:21Z","updated_at":"2015-01-09T20:12:21Z","body":"OK, does it work for you on the tutorials?  Are you able to provide a plunker (probably based off the tutorial is the easiest way) that illustrates the problem?  http://ui-grid.info/docs/#/tutorial/111_cellClass"}}