shithub: hugo

Download patch

ref: 51c9bfbc9ef96ca237fef1fb65baedd2a5ff3815
parent: cf978c06496d99e76b08418422dda5797d90fed6
author: Bjørn Erik Pedersen <[email protected]>
date: Fri Sep 16 20:50:11 EDT 2016

Remove Authors.Sort

We may add it again in the future, but let us try to keep the API as small as possible for now.

See #1850

--- a/hugolib/author.go
+++ b/hugolib/author.go
@@ -39,12 +39,6 @@
 	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