{"action":"closed","issue":{"url":"https://api.github.com/repos/l-lin/angular-datatables/issues/660","repository_url":"https://api.github.com/repos/l-lin/angular-datatables","labels_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/660/labels{/name}","comments_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/660/comments","events_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/660/events","html_url":"https://github.com/l-lin/angular-datatables/issues/660","id":141247578,"number":660,"title":"Can't set the ColReorder if I set order for a column","user":{"login":"falinsin","id":4744031,"avatar_url":"https://avatars.githubusercontent.com/u/4744031?v=3","gravatar_id":"","url":"https://api.github.com/users/falinsin","html_url":"https://github.com/falinsin","followers_url":"https://api.github.com/users/falinsin/followers","following_url":"https://api.github.com/users/falinsin/following{/other_user}","gists_url":"https://api.github.com/users/falinsin/gists{/gist_id}","starred_url":"https://api.github.com/users/falinsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falinsin/subscriptions","organizations_url":"https://api.github.com/users/falinsin/orgs","repos_url":"https://api.github.com/users/falinsin/repos","events_url":"https://api.github.com/users/falinsin/events{/privacy}","received_events_url":"https://api.github.com/users/falinsin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-16T11:40:53Z","updated_at":"2016-05-03T11:59:59Z","closed_at":"2016-05-03T11:59:59Z","body":"When I set  ColReorder and set order for a column (this is my setting)\r\n\r\n                                        $scope.dtOptions = DTOptionsBuilder.newOptions()\r\n                                            // .withDOM('C<\"clear\">lfrtip')\r\n                                            .withOption('responsive', false)\r\n                                            .withOption('scroller', false)\r\n                                            .withOption('bAutoWidth', false)\r\n                                            .withPaginationType('full_numbers')\r\n                                            .withDOM('frtip')\r\n                                            .withDOM('Zlfrtip')\r\n                                            .withOption('order', [1, 'desc'])\r\n                                            .withOption(\"colResize\",{\"exclude\":[0], \"tableWidthFixed\": false})\r\n                                            .withColReorder();\r\n\r\nThen when I try to drag columns for a col reorder the inspector estar show this error in every try of dragging:\r\n\r\ndataTables.colReorder.js:184 Uncaught TypeError: Cannot create property '0' on number '1'\r\n\r\nIn that line of dataTables.colReorder.js\r\n\r\nBut if I click on a column of that table so i'm setting the order of a column at runtime itself  tehn i can drag columns and change order and chrome stop throw errors anymore.\r\n\r\nIf in the initial set I remove the order setting (this line .withOption('order', [1, 'desc'])) then all de col resize and drag works OK.\r\n\r\nTeh problem is that I need to set the order in the second columns so I need set ORDERs.\r\n\r\nIs there a Workarround for this problems?\r\n\r\nThanks in advance, is very importan for me.\r\n"}}