From f9ee3c56141fbf6195ba7bc5abe7001228bd9104 Mon Sep 17 00:00:00 2001 From: "Randall C. O'Reilly" Date: Thu, 22 Aug 2024 16:47:53 -0700 Subject: [PATCH] author sorts bibs --- author/refs/bibtex.go | 2 ++ go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/author/refs/bibtex.go b/author/refs/bibtex.go index 54ff8ee2..a57030f3 100644 --- a/author/refs/bibtex.go +++ b/author/refs/bibtex.go @@ -89,6 +89,8 @@ func BibTexCited(srcDir, srcBib, outBib string, verbose bool) error { fmt.Printf("Error: Reference key: %v not found in %s\n", r, srcBib) } } + + ob.SortEntries() out := ob.PrettyString() of, err := os.Create(outBib) diff --git a/go.mod b/go.mod index 9e4050a8..9e729017 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module cogentcore.org/cogent go 1.22 require ( - cogentcore.org/core v0.3.3-0.20240819215147-49698295dd89 + cogentcore.org/core v0.3.3-0.20240822231726-6385e4c9fc1f github.com/aandrew-me/tgpt/v2 v2.7.2 github.com/alecthomas/chroma/v2 v2.13.0 github.com/bogdanfinn/fhttp v0.5.27 diff --git a/go.sum b/go.sum index 86f98976..1cedca7e 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -cogentcore.org/core v0.3.3-0.20240819215147-49698295dd89 h1:ZSHm3pLiuptj1g7s7oobNNFDbwysVo1bxFiYZVIrU60= -cogentcore.org/core v0.3.3-0.20240819215147-49698295dd89/go.mod h1:dg3uRsPcd8S1ZYvRD2TztCtjopRkrB5V/lbl54xsQd4= +cogentcore.org/core v0.3.3-0.20240822231726-6385e4c9fc1f h1:ia/D6kJ5nhFzyYyRZHe7LmXTPpIh+dDO+Jm8GQzUmGQ= +cogentcore.org/core v0.3.3-0.20240822231726-6385e4c9fc1f/go.mod h1:dg3uRsPcd8S1ZYvRD2TztCtjopRkrB5V/lbl54xsQd4= github.com/Bios-Marcel/wastebasket v0.0.4-0.20240213135800-f26f1ae0a7c4 h1:6lx9xzJAhdjq0LvVfbITeC3IH9Fzvo1aBahyPu2FuG8= github.com/Bios-Marcel/wastebasket v0.0.4-0.20240213135800-f26f1ae0a7c4/go.mod h1:FChzXi1izqzdPb6BiNZmcZLGyTYiT61iGx9Rxx9GNeI= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=