🎨 Improve sorting for Add to Database
https://github.com/siyuan-note/siyuan/issues/11286
This commit is contained in:
parent
317359c2dd
commit
9a544e2a09
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,7 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"slices"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
@ -2216,6 +2217,8 @@ func (tx *Transaction) doInsertAttrViewBlock(operation *Operation) (ret *TxErr)
|
|||
}
|
||||
|
||||
func AddAttributeViewBlock(tx *Transaction, srcs []map[string]interface{}, avID, blockID, previousBlockID string, ignoreFillFilter bool) (err error) {
|
||||
slices.Reverse(srcs) // https://github.com/siyuan-note/siyuan/issues/11286
|
||||
|
||||
for _, src := range srcs {
|
||||
srcID := src["id"].(string)
|
||||
isDetached := src["isDetached"].(bool)
|
||||
|
|
Loading…
Add table
Reference in a new issue