mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
🎨 Database select field supports sorting by option order Fix https://github.com/siyuan-note/siyuan/issues/10665
This commit is contained in:
parent
d522a74654
commit
30d95605df
4 changed files with 30 additions and 15 deletions
|
|
@ -153,7 +153,7 @@ func (table *Table) GetID() string {
|
|||
return table.ID
|
||||
}
|
||||
|
||||
func (table *Table) SortRows() {
|
||||
func (table *Table) SortRows(attrView *AttributeView) {
|
||||
if 1 > len(table.Sorts) {
|
||||
return
|
||||
}
|
||||
|
|
@ -220,7 +220,7 @@ func (table *Table) SortRows() {
|
|||
return colIndexSort.Order != SortOrderAsc
|
||||
}
|
||||
|
||||
result := val1.Compare(val2)
|
||||
result := val1.Compare(val2, attrView)
|
||||
if 0 == result {
|
||||
sorted = false
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue