chore(backend): reformat code

This commit is contained in:
Łukasz Mierzwa
2019-08-06 21:19:08 +01:00
parent c485e3ed3f
commit 68b6e17e64

View File

@@ -16,11 +16,12 @@ type AlertList []Alert
func (a AlertList) Len() int {
return len(a)
}
func (a AlertList) Swap(i, j int) {
a[i], a[j] = a[j], a[i]
}
func (a AlertList) Less(i, j int) bool {
// compare timestamps, if equal compare fingerprints to stable sort order
if a[i].StartsAt.After(a[j].StartsAt) {