Skip to content

Commit

Permalink
Merge pull request #139 from aspc/feature/#122-housing-reviews
Browse files Browse the repository at this point in the history
Fix housing room number sorting
  • Loading branch information
adamguos authored May 8, 2019
2 parents 8b36a09 + 7c311a3 commit 766c9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/housing_rooms/show_building_rooms.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<%= render 'components/page_header', :title => "#{@housing_building.name} Rooms" %>
<% end %>

<% @housing_rooms.sort_by{|r| r.room_number}.in_groups_of(3, false).each do |group| %>
<% @housing_rooms.sort_by{|r| r.room_number.to_i}.in_groups_of(3, false).each do |group| %>
<div class="columns">
<% group.each do |room| %>
<div class="column is-4">
Expand Down

0 comments on commit 766c9ae

Please sign in to comment.