(s []T)
| 20 | ) |
| 21 | |
| 22 | func sortByID[T params.IDGetter](s []T) { |
| 23 | sort.Slice(s, func(i, j int) bool { |
| 24 | return s[i].GetID() < s[j].GetID() |
| 25 | }) |
| 26 | } |
| 27 | |
| 28 | func sortByCreationDate[T params.CreationDateGetter](s []T) { |
| 29 | sort.Slice(s, func(i, j int) bool { |
no test coverage detected