From df9b55c71ba6aea40617a2fc17ad9d4908edc81c Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 13 Oct 2023 08:46:29 +0800 Subject: [PATCH] :art: Database template columns support sort --- kernel/av/table.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/av/table.go b/kernel/av/table.go index 5bd0177f667..4ca32391558 100644 --- a/kernel/av/table.go +++ b/kernel/av/table.go @@ -162,6 +162,9 @@ func (value *Value) Compare(other *Value) int { } return strings.Compare(v1, v2) } + if nil != value.Template && nil != other.Template { + return strings.Compare(value.Template.Content, other.Template.Content) + } return 0 }