diff options
Diffstat (limited to 'src/Formats/OutlineService.kt')
-rw-r--r-- | src/Formats/OutlineService.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Formats/OutlineService.kt b/src/Formats/OutlineService.kt index 6c7e882e..6626cf51 100644 --- a/src/Formats/OutlineService.kt +++ b/src/Formats/OutlineService.kt @@ -16,7 +16,7 @@ public interface OutlineFormatService { for (node in nodes) { appendOutlineHeader(location, node, to) if (node.members.any()) { - val sortedMembers = node.members.sortBy { it.name } + val sortedMembers = node.members.sortedBy { it.name } appendOutlineLevel(to) { appendOutline(location, to, sortedMembers) } @@ -25,5 +25,5 @@ public interface OutlineFormatService { } fun formatOutline(location: Location, nodes: Iterable<DocumentationNode>): String = - StringBuilder { appendOutline(location, this, nodes) }.toString() + StringBuilder().apply { appendOutline(location, this, nodes) }.toString() } |