Hello out there,

I have the following code to sort an array:

def Myclass
  def sort 
    # $= =false => case sensitive
    oldequal=$=
    $= =1
    @allcmds.sort!   
    $= =oldequal
  end
end

And ruby 1.8.1 gives me a warning, that setting $= is deprecated. How
should I rather do the case insensitive sort?

Patrick