aboutsummaryrefslogtreecommitdiff
path: root/src/docs_writer.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-03-19 15:34:29 +0000
committergingerBill <bill@gingerbill.org>2024-03-19 15:34:29 +0000
commit9a2fc6cf4c8b4434ae45170953b77b3239120fea (patch)
treea955d0891bea9269d2ff3483127ed100c176bef3 /src/docs_writer.cpp
parent8ff788f4fff7504b8b6bca1183a9be98b8765cbc (diff)
Serialize errors to make them sortable, deterministic, and generally more control
Diffstat (limited to 'src/docs_writer.cpp')
-rw-r--r--src/docs_writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/docs_writer.cpp b/src/docs_writer.cpp
index 1bc244918..26d8027a9 100644
--- a/src/docs_writer.cpp
+++ b/src/docs_writer.cpp
@@ -1107,7 +1107,7 @@ gb_internal void odin_doc_write_docs(OdinDocWriter *w) {
}
debugf("odin_doc_update_entities sort pkgs %s\n", w->state ? "preparing" : "writing");
- gb_sort_array(pkgs.data, pkgs.count, cmp_ast_package_by_name);
+ array_sort(pkgs, cmp_ast_package_by_name);
for_array(i, pkgs) {
gbAllocator allocator = heap_allocator();