{"action":"created","issue":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1318","labels_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1318/labels{/name}","comments_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1318/comments","events_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1318/events","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/1318","id":102215743,"number":1318,"title":"Reordering Columns does not switch header formatter functions.","user":{"login":"Cowdrey","id":6528684,"avatar_url":"https://avatars.githubusercontent.com/u/6528684?v=3","gravatar_id":"","url":"https://api.github.com/users/Cowdrey","html_url":"https://github.com/Cowdrey","followers_url":"https://api.github.com/users/Cowdrey/followers","following_url":"https://api.github.com/users/Cowdrey/following{/other_user}","gists_url":"https://api.github.com/users/Cowdrey/gists{/gist_id}","starred_url":"https://api.github.com/users/Cowdrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cowdrey/subscriptions","organizations_url":"https://api.github.com/users/Cowdrey/orgs","repos_url":"https://api.github.com/users/Cowdrey/repos","events_url":"https://api.github.com/users/Cowdrey/events{/privacy}","received_events_url":"https://api.github.com/users/Cowdrey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-20T19:24:05Z","updated_at":"2015-08-20T20:18:01Z","closed_at":null,"body":"This is apparent when using the editable plugin along with the reordering columns.  Immediately after reordering an editable and non-editable column, columns are correct. After filtering any column, the initBody(true) function fires, and it switches all header formats to the the original format of that column index. \r\n I am currently working on a solution, i think it should be be as simple as :\r\n```javascript\r\nvar temp = that.header.formatters[colA];\r\nthat.header.formatters[colA] = that.header.formatters[colB];\r\nthat.header.formatters[colB] = temp;\r\n```\r\nwill update if it works."},"comment":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/comments/133158924","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/1318#issuecomment-133158924","issue_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1318","id":133158924,"user":{"login":"Cowdrey","id":6528684,"avatar_url":"https://avatars.githubusercontent.com/u/6528684?v=3","gravatar_id":"","url":"https://api.github.com/users/Cowdrey","html_url":"https://github.com/Cowdrey","followers_url":"https://api.github.com/users/Cowdrey/followers","following_url":"https://api.github.com/users/Cowdrey/following{/other_user}","gists_url":"https://api.github.com/users/Cowdrey/gists{/gist_id}","starred_url":"https://api.github.com/users/Cowdrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cowdrey/subscriptions","organizations_url":"https://api.github.com/users/Cowdrey/orgs","repos_url":"https://api.github.com/users/Cowdrey/repos","events_url":"https://api.github.com/users/Cowdrey/events{/privacy}","received_events_url":"https://api.github.com/users/Cowdrey/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T20:18:01Z","updated_at":"2015-08-20T20:18:01Z","body":"Possible duplicate of https://github.com/wenzhixin/bootstrap-table/issues/1313"}}