Sort tags alphabetically for consistent ordering
This commit is contained in:
parent
946ce908e9
commit
88e355730b
2 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ sub post-tag(Str:D $tag) is export {
|
|||
}
|
||||
|
||||
sub post-tags(Post:D $post) is export {
|
||||
my @tags = $post.tags;
|
||||
my @tags = $post.tags.sort;
|
||||
if @tags {
|
||||
@tags.=map(*.&post-tag);
|
||||
div :class<post-tags>, [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue