1356
func (s *visibilitySuite) sortByCloseTimeDescRunIDAsc(
1357
visibilities []sqlplugin.VisibilityRow,
1359
>
sort.Slice(visibilities, func(i, j int) bool {
1360
>
this := visibilities[i]
1361
>
that := visibilities[j]
1362
>
1363
>
// close time desc, run ID asc
1364
>
1365
>
if this.CloseTime.Before(*that.CloseTime) {
1366
>
return false
1367
>
} else if that.CloseTime.Before(*this.CloseTime) {
1368
>
return true
1369
>
}
1370
1372
>
return true
1373
>
} else if this.RunID > that.RunID {
1374
>
return false
1375
>
}
1376
1377
// same