h1.heading-xlarge= @heading

.grid-row
  .column-full
    == render partial: 'shared/search_input'

.grid-row
  .column-half
    - @schools.group_by(&:place).each do |place, list|
      h3.heading-medium= place
      ul
        - list.each do |school|
          li
            = link_to school.name, school_url(id: school.record), class: 'school', data: {lat: school.coordinates.try(:last), lon: school.coordinates.try(:first), place: school.place}

  .column-half
    == render partial: 'shared/map', locals: { lat: @lat, lon: @lon }

h1.heading-xlarge= @heading

.grid-row
  .column-full
    == render partial: 'shared/search_input'

.grid-row
  .column-half
    - @schools.group_by(&:place).each do |place, list|
      h3.heading-medium= place
      ul
        - list.sort_by(&:name).each do |school|
          li
            = link_to school.name, school_url(id: school.record), class: 'school', data: {lat: school.coordinates.try(:last), lon: school.coordinates.try(:first), place: school.place}

  .column-half
    == render partial: 'shared/map', locals: { lat: @lat, lon: @lon }

Sort schools by name in search result view
Sort schools by name in search result view

openregister/school-demo,openregister/school-demo,openregister/school-demo