
19 Mar
2007
19 Mar
'07
2:48 p.m.
Or a simple lambda again?
sort(begin, end, bind(&some_type::some_field, _1) < bind(&some_type::some_field, _2));
Yes that is a good point. I wonder if it might be worth encapsulating the idea of multi-sorting on several different members, though. I bet it would be possible to generate the necessary lambda expressions automatically... -Lewis