Alex Fenton wrote: > Hi > > I tried the code below- I thought > > [a, b].sort > > was always the same as > > [a, b].sort { | x, y | x <=> y } [a, b] != ["a", "b"] a and b are variables that can hold strings or anything. They are not strings themselves. If a = 'zebra' b = 'aardvark' then [a,b].sort => ["aardvark", "zebra"] Jim -- Jim Menard, jimm / io.com, http://www.io.com/~jimm