node to page: Re-add translations sort of regular pages
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 21 Nov 2016 12:51:41 +0000 (13:51 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 22 Nov 2016 08:57:03 +0000 (09:57 +0100)
Was removed by mistake.

Updates #2297

hugolib/translations.go

index 36e79125de1564c3f46282bfbc5671a960e46fbb..648bcf3224e4fb625e0633c7f6cb590d2f2650e5 100644 (file)
@@ -69,5 +69,7 @@ func assignTranslationsToPages(allTranslations map[string]Translations, pages []
                for _, translatedPage := range trans {
                        page.translations = append(page.translations, translatedPage)
                }
+
+               pageBy(languagePageSort).Sort(page.translations)
        }
 }