Feature Request: :adverb
to capture/return original CSV column-order.
#32
Labels
:adverb
to capture/return original CSV column-order.
#32
Feature Request:
:adverb
to capture/return original CSV column-order.Hi, maybe I'm not "getting" the Text::CSV way of doing things, but one thing that is different between Perl5 and Raku is that Raku guarantees hash randomization.
Therefore, any method capturing "CSV_header" separate from "CSV_datarows" needs to retain column-order otherwise to a new user it appears that Raku hopelessly scrambles CSV columns, with no way of restoring.
Example below using a classic CSV from Microsoft: https://www.microsoft.com/en-us/download/details.aspx?id=45485
Above, column order is
User Name, First Name, Last Name, Display Name, Job Title, Department, Office Number, Office Phone, Mobile Phone, Fax, Address, City, State or Province, ZIP or Postal Code, Country or Region
Text:CSV code below generally from the docs; column order is re-arranged to alphabetical:
address, city, country or region, department, display name, fax, first name, job title, last name, mobile phone, office number, office phone, state or province, user name, zip or postal code
How to output a CSV file in the original column order?
The text was updated successfully, but these errors were encountered: