	function sort( keys );
	begin
	if size(keys) > M then
		< ...main sorting algorithm... >
	else	simplersort( keys );
	end;
