mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Update av
This commit is contained in:
parent
c83d138c60
commit
b6f62eb4ea
1 changed files with 5 additions and 4 deletions
|
|
@ -94,7 +94,6 @@ func sortRows(ret *av.AttributeView) {
|
|||
}
|
||||
|
||||
sort.Slice(ret.Rows, func(i, j int) bool {
|
||||
less := false
|
||||
for _, index := range colIndexes {
|
||||
c := ret.Columns[index]
|
||||
if c.Type == av.ColumnTypeBlock {
|
||||
|
|
@ -104,11 +103,13 @@ func sortRows(ret *av.AttributeView) {
|
|||
result := ret.Rows[i].Cells[index].Value.Compare(ret.Rows[j].Cells[index].Value)
|
||||
if 0 == result {
|
||||
continue
|
||||
} else if 0 > result {
|
||||
less = true
|
||||
}
|
||||
|
||||
if 0 > result {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return less
|
||||
return false
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue