http://qs321.pair.com?node_id=1114797


in reply to Re^2: How can I access object data in a user defined sort cmp function?
in thread How can I access object data in a user defined sort cmp function?

your code is very hard to read and your real intention hard to guess.

I wanted to show another way, with one method ->sort combined with various ->by_val , ->by_something but it's impossible to test with the spare information provided.

Cheers Rolf

PS: Je suis Charlie!