Skip to content

Commit

Permalink
Merge branch 'y2015' of github.com:perladvent/Perl-Advent into y2015
Browse files Browse the repository at this point in the history
  • Loading branch information
2shortplanks committed Dec 19, 2015
2 parents dd7557d + 6cfdfe7 commit bfafb50
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions 2015/articles/2015-12-19.pod
Expand Up @@ -24,7 +24,7 @@ L<Wikipedia|https://en.wikipedia.org/wiki/Santa_Claus%27s_reindeer>.

If any of these reindeer were to take sick, the stand-in reindeer would have to
move to the back of the line. After all, if you've been doing this for over a
century, seniority certain enters into the picture. In order to ensure that the
century, seniority certainly enters into the picture. In order to ensure that the
reindeer are guided in the correct order by the self-driving sleigh, Santa
reaches into his bag of tricks and scripts up a little something in Perl. It
looks a little like this:
Expand Down Expand Up @@ -74,8 +74,6 @@ Looking at the output we can see that:
* Santa's reindeer appear first in the list, sorted according to seniority
* Our stand-in reindeer follow in the list, exactly in the order in which they were added to the original list

=back

So far, so good. Now let's introduce some secondary sorting. Right now the
stand-ins are appearing in the order in which they were originally provided.
Let's sort them alphabetically.
Expand Down

0 comments on commit bfafb50

Please sign in to comment.