m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/index.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.html.erb b/src/index.html.erb
index ca40664..f6be207 100644
--- a/src/index.html.erb
+++ b/src/index.html.erb
@@ -7,9 +7,9 @@
</p>
<ul id='songs'>
-<%- songs.keys.sort.each do |song_id| -%>
+<%- songs.values.sort { |a, b| polish_compare a.title, b.title }.each do |song| -%>
<li>
- <a href='<%= path_to (song_html song_id) %>'><%= songs[song_id].title %></a>
+ <a href='<%= path_to (song_html song.id) %>'><%= song.title %></a>
</li>
<%- end -%>
</ul>