Skip to content

Commit

Permalink
Sort tracks by title
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Jan 15, 2017
1 parent f90c7e7 commit 4d2413f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/generate
Expand Up @@ -48,7 +48,7 @@ $tt->process('songs.tt', {
foreach (@albums) {
$tt->process('album.tt', {
album => $_,
tracks => [ $_->tracks ],
tracks => [ $_->tracks->by_title ],
title => $_->page_title,
}, $_->filename)
or die $tt->error;
Expand All @@ -57,7 +57,7 @@ foreach (@albums) {
foreach (@artists) {
$tt->process('artist.tt', {
artist => $_,
tracks => [ $_->tracks ],
tracks => [ $_->tracks->by_title ],
title => $_->page_title,
}, $_->filename)
or die $tt->error;
Expand All @@ -66,7 +66,7 @@ foreach (@artists) {
foreach (@songs) {
$tt->process('song.tt', {
song => $_,
tracks => [ $_->tracks ],
tracks => [ $_->tracks->by_title ],
title => $_->page_title,
}, $_->filename)
or die $tt->error;
Expand Down

0 comments on commit 4d2413f

Please sign in to comment.