Have you seen salva's Sort::Key and Sort::Key::Maker - they don't do exactly what you're talking about, but I'm fairly sure you'll find something to like in them.
In reply to Re: Comparing spaceships (cmp and <=> as options)
by tobyink
in thread Comparing spaceships (cmp and <=> as options)
by Random_Walk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |