gitlab.com/evatix-go/core@v1.3.55/coredata/PointerStringsDsc.go (about) 1 package coredata 2 3 type PointerStringsDsc []*string 4 5 func (p PointerStringsDsc) Len() int { 6 if p == nil { 7 return 0 8 } 9 10 return len(p) 11 } 12 13 func (p PointerStringsDsc) Less(i, j int) bool { return *p[i] > *p[j] } 14 func (p PointerStringsDsc) Swap(i, j int) { p[i], p[j] = p[j], p[i] }