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