On 8 Jun 2004, at 15:59, Nick Ing-Simmons wrote: > David Nicol <firstname.lastname@example.org> writes: >> Attached is a patch to pp_sort.c that adds code to give a sortedness >> ratio in scalar context. > > > This looks like quite a big change for a return value which we seem > unable to reach consensus on. And something that will get little use. > (I would still like sort in scalar context to return min or max value > - don't care which because one can change cmp function to get the > other.) i would rather leave it as-is. If you want min/max use List::Util for the simple cases and (sort ...) where you need your own compare sub. > What can one use your sortedness value for? Um, yes. Graham.