Rails3 sorted variables