示例#1
0
func (l nodeResponseList) Less(i, j int) bool {
	return natsort.Compare(l[i].Name, l[j].Name)
}
示例#2
0
func (l searchResponseList) Less(i, j int) bool {
	return natsort.Compare(l[i].hostResponse.Name, l[j].hostResponse.Name)
}
示例#3
0
文件: types.go 项目: vovkasm/facette
func (r ItemListResponse) Less(i, j int) bool {
	return natsort.Compare(r[i].Name, r[j].Name)
}
示例#4
0
文件: types.go 项目: vovkasm/facette
func (r StringListResponse) Less(i, j int) bool {
	return natsort.Compare(r[i], r[j])
}
示例#5
0
文件: types.go 项目: vovkasm/facette
func (r ScaleValueListResponse) Less(i, j int) bool {
	return natsort.Compare(r[i].Name, r[j].Name)
}
示例#6
0
文件: types.go 项目: vovkasm/facette
func (r CollectionListResponse) Less(i, j int) bool {
	return natsort.Compare(r[i].Name, r[j].Name)
}