Hi,

In message "Re: [ ruby-Bugs-4985 ] array.sort gives an error when the array contains a nil"
    on Sun, 9 Jul 2006 01:03:14 +0900, <noreply / rubyforge.org> writes:

|Summary: array.sort gives an error when the array contains a nil

It is not a bug, since nil is not comparable with strings (should it
be smaller or bigger than strings?).  Use Array#compact first to
remove nils.

							matz.