Skip to content

Commit

Permalink
Sort order to state list, index.njk
Browse files Browse the repository at this point in the history
Added sort order to the state list.
  • Loading branch information
bzerangue committed Jun 28, 2019
1 parent 1dc2a6b commit 9c3b3a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.njk
@@ -1,7 +1,7 @@
{% extends "layouts/default.njk" %}

{% block content %}
{% for state, roasters in roasters.data | groupby("state") %}
{% for state, roasters in roasters.data | sort(false,true,"state") | groupby("state") %}
<section class="c-section">
<h2 class="c-section__heading" id="{{ state | slugify }}"><a href="#{{ state | slugify }}">{{ state }} ({{ roasters.length }})</a></h2>
<ul class="o-grid">
Expand Down

0 comments on commit 9c3b3a6

Please sign in to comment.