Since 5/8/2012 2:04:17 PM, chris.sepic has written 1 articles and participated in 1 conversations. chris.sepic signature: chris.sepic
chris.sepic's articles:
Items(1) /1
how does sort work?839 (2/2/2008 11:39:50 PM) comp.lang.ruby I'm confused as to how the sort method works. If I have: a = [ "d", "a", "e", "c", "b" ] I know that a.sort {|x,y| x y } (or just .sort) = ["a", "b", "c", "d", "e"] and a.sort {|x,y| y x } = ["e", "d", "c"... Chris
chris.sepic's replies:
Items(1) /1
how does sort work?839 (2/2/2008 11:39:50 PM) comp.lang.ruby I'm confused as to how the sort method works. If I have: a = [ "d", "a", "e", "c", "b" ] I know that a.sort {|x,y| x y } (or just .sort) = ["a", "b", "c", "d", "e"] and a.sort {|x,y| y x } = ["e", "d", "c"... chris.sepic(2)