♻️ Refactor av data structure

This commit is contained in:
Daniel 2023-07-13 09:38:12 +08:00
parent dfa561c62c
commit dc702d0a54
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -267,10 +267,6 @@ func (table *Table) GetID() string {
}
func (table *Table) SortRows() {
sort.Slice(table.Rows, func(i, j int) bool { return table.Rows[i].ID < table.Rows[j].ID })
// sort by row ids
if 1 > len(table.Sorts) {
return
}