mirror of
https://github.com/logseq/logseq.git
synced 2026-05-21 03:12:38 +00:00
fix: children should be sorted
This commit is contained in:
@@ -178,7 +178,8 @@
|
||||
(let [block (db/sub-block id)
|
||||
block-id (:block/uuid block)
|
||||
block? (not (db/page? block))
|
||||
full-children (:block/_parent block)
|
||||
full-children (->> (:block/_parent block)
|
||||
ldb/sort-by-order)
|
||||
mobile-length-limit 50
|
||||
[children more?] (if (and (> (count full-children) mobile-length-limit) (util/mobile?) journals?)
|
||||
[(take mobile-length-limit full-children) true]
|
||||
|
||||
Reference in New Issue
Block a user