in reply to Sorting an array of strings when some of the strings have commas in them?
This transliteration would delete commas and periods from the company name before the sort comparisons.tr/,.//d for $company_name_a, $company_name_b; fc($company_name_a) cmp fc($company_name_b) or $invoice_ID_a <=> $invoice_ID_b
Hope this helps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting an array of strings when some of the strings have commas in them?
by perldigious (Priest) on Dec 11, 2015 at 22:41 UTC |