update csv.php

Apply consistent sorting for both header and subsequent values. JSON, doesn't need to know about order. CSVs on the other hand...most definitely do :D
Merge pull request #2 from dpawluk/patch-1

update csv.php