diff options
author | Alex Waters <awaters@nextfaze.com> | 2017-05-22 15:02:22 +0930 |
---|---|---|
committer | Simon Ogorodnik <sem-oro@yandex.ru> | 2017-05-22 14:56:17 +0300 |
commit | ef9944226db62242ae0645d7d066e4985ddba6cf (patch) | |
tree | a844d33c46a7ac87f6339502d921a896841618ee /core | |
parent | 4943720ffdd0f884a81a25df2782fd037e21744a (diff) | |
download | dokka-ef9944226db62242ae0645d7d066e4985ddba6cf.tar.gz dokka-ef9944226db62242ae0645d7d066e4985ddba6cf.tar.bz2 dokka-ef9944226db62242ae0645d7d066e4985ddba6cf.zip |
Sort package-list output
If left unsorted, then package list can change each time even though no
packages were changed.
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/Formats/PackageListService.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/kotlin/Formats/PackageListService.kt b/core/src/main/kotlin/Formats/PackageListService.kt index 360dbb46..e7f4e952 100644 --- a/core/src/main/kotlin/Formats/PackageListService.kt +++ b/core/src/main/kotlin/Formats/PackageListService.kt @@ -52,9 +52,9 @@ class DefaultPackageListService @Inject constructor(locationService: FileLocatio appendln("\$dokka.linkExtension:${formatService.linkExtension}") nonStandardLocations.map { (signature, location) -> "\$dokka.location:$signature\u001f$location" } - .joinTo(this, separator = "\n", postfix = "\n") + .sorted().joinTo(this, separator = "\n", postfix = "\n") - packages.joinTo(this, separator = "\n", postfix = "\n") + packages.sorted().joinTo(this, separator = "\n", postfix = "\n") } } |