github.com/giantswarm/apiextensions/v2@v2.6.2/pkg/apis/provider/v1alpha1/status_sorts.go (about) 1 package v1alpha1 2 3 type sortClusterStatusVersionsByDate []StatusClusterVersion 4 5 func (s sortClusterStatusVersionsByDate) Len() int { return len(s) } 6 func (s sortClusterStatusVersionsByDate) Swap(i, j int) { s[i], s[j] = s[j], s[i] } 7 func (s sortClusterStatusVersionsByDate) Less(i, j int) bool { 8 return s[i].Date.UnixNano() < s[j].Date.UnixNano() 9 }