mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 01:04:25 +08:00
modify sort method of account list
This commit is contained in:
@@ -154,5 +154,9 @@ func (a AccountInfoResponseSlice) Swap(i, j int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a AccountInfoResponseSlice) Less(i, j int) bool {
|
func (a AccountInfoResponseSlice) Less(i, j int) bool {
|
||||||
|
if a[i].Category != a[j].Category {
|
||||||
|
return a[i].Category < a[j].Category
|
||||||
|
}
|
||||||
|
|
||||||
return a[i].DisplayOrder < a[j].DisplayOrder
|
return a[i].DisplayOrder < a[j].DisplayOrder
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user