Remove Authors.Sort
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 16 Sep 2016 22:50:11 +0000 (00:50 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 16 Sep 2016 22:50:11 +0000 (00:50 +0200)
We may add it again in the future, but let us try to keep the API as small as possible for now.

See #1850

hugolib/author.go

index 2fbbfe793947921677f58f6bcb051b4558b7c151..9aa71b5df1a3fd1df037e94125d521393486a7e9 100644 (file)
@@ -39,12 +39,6 @@ func (a Authors) Get(id string) Author {
        return Author{}
 }
 
-// Sort sorts the authors by weight
-func (a Authors) Sort() Authors {
-       sort.Stable(a)
-       return a
-}
-
 // Author contains details about the author of a page.
 type Author struct {
        ID          string