From: alvaro alves Date: 2011-12-29T22:28:29+09:00 Subject: changing output from my hash i have a program who gets urls and category from pages on a certain directory, i put this data on a hash like this example: pages{general =>[link1,link2)],producst => [link1, link2], services => [link1, link2], downloads => [link1,link2]} I'm using haml on my view page so the output code looks like this - pages.each do |category, links| .span-6 %h1= category %ul - links.each do |link| %li= link so this give me the result: Downloads General products services link1 link1 link1 link1 link2 link2 link2 link2 i wish the general come to the left side and the downloads go to right, is there any way to sort my hash? -- Posted via http://www.ruby-forum.com/.