Ensure ordering is maintained during CSV->JSON conversion