Hey All,
I’m looping through some YAML data to generate cards for a site I’m working on and just added a field called ‘order’ in which there is an integer I’d like to sort by.
I’m not much of a Rubyist and have tried various sort_by techniques, but am hitting a wall. Any help would be appreciated!
Iterator looks something like:
<% data.jobs.sort_by{:order}.each do |j| %>
...
<% end %>