Sorted CSV formatting