After headings should be sorted by pos

This commit is contained in:
Tienson Qin
2020-05-10 07:57:49 +08:00
parent 1d78d7bdcb
commit cc6d3d9b87
3 changed files with 11 additions and 8 deletions

View File

@@ -163,7 +163,8 @@
(fn [idx {:heading/keys [ref-pages meta] :as heading}]
(let [heading (merge
heading
{:heading/file file
{:heading/meta meta
:heading/file file
:heading/page page
:heading/content (utf8/substring encoded-content
(:pos meta)