Fix wrong order of columns header in the export devices to csv

* http://ralph.allegrogroup.com/buildbot/builders/unittest-ralph-quamilek/builds/165