toonski has asked for the wisdom of the Perl Monks concerning the following question:
Here's what I mean:
| URLS | LINKS |
| yahoo.com | yahoo |
| ebay.com | ebay |
| google.com |
now i want the sort function to sort both arrays such that it's:
| URLS | LINKS |
| ebay.com | ebay |
| google.com | |
| yahoo.com | yahoo |
but if i can only make the sort apply to one array:
| URLS | LINKS |
| yahoo.com | ebay |
| ebay.com | |
| google.com | yahoo |
I can figure it out if there's absolutely no way sort the both in the same order with SORT, it's just that a custom sort is a lot slower, and i'd need to do it a lot. I could also do it by putting them both in the same array delimited, but i still wish there was a way to do it in one step.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting issues
by The Mad Hatter (Priest) on Jul 23, 2003 at 03:43 UTC | |
|
Re: Sorting issues
by Abigail-II (Bishop) on Jul 23, 2003 at 08:19 UTC | |
|
Re: Sorting issues
by Zaxo (Archbishop) on Jul 23, 2003 at 03:44 UTC | |
|
Re: Sorting issues (indices)
by tye (Sage) on Jul 23, 2003 at 08:11 UTC | |
|
Re: Sorting issues
by bobn (Chaplain) on Jul 23, 2003 at 03:50 UTC |