in reply to Re: And lexicographically means...
in thread Inconsistent column Schwartzian Transform attempt

I'm building up the string key using sprintf just to avoid perl code in the comparison function.

Evil yes. But also EFFICIENT.

I'll bet for a long sort, it's probably faster to do a cmp than several cmps and <=>.

But it's the weekend; I'm too lazy to fire up Benchmark. :)
--
Mike

  • Comment on It's an efficiency thing, not an elegance thing