diff options
author | Marcin Chrzanowski <m@m-chrzan.xyz> | 2023-01-26 12:15:59 +0100 |
---|---|---|
committer | Marcin Chrzanowski <m@m-chrzan.xyz> | 2023-01-26 12:15:59 +0100 |
commit | fb42f4157c92eb35f54dd65425f1c7e6aca07389 (patch) | |
tree | d6caea2cfb75d55afae05c3484330cd670e138ee /src | |
parent | aeacdaeb9607658bf9b101a5aaa4620181ccffe8 (diff) |
Sort by Polish alphabet
Diffstat (limited to 'src')
-rw-r--r-- | src/index.html.erb | 4 |
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> |