1330
func (s *visibilitySuite) sortByStartTimeDescRunIDAsc(
1331
visibilities []sqlplugin.VisibilityRow,
1333
>
sort.Slice(visibilities, func(i, j int) bool {
1334
>
this := visibilities[i]
1335
>
that := visibilities[j]
1336
>
1337
>
// start time desc, run ID asc
1338
>
1339
>
if this.StartTime.Before(that.StartTime) {
1340
>
return false
1341
>
} else if that.StartTime.Before(this.StartTime) {
1342
>
return true
1343
>
}
1344
1346
>
return true
1347
>
} else if this.RunID > that.RunID {
1348
>
return false
1349
>
}
1350
1351
// same