示例#1
0
文件: sort.go 项目: keep94/Dominator
func (list directoryList) Less(i, j int) bool {
	return verstr.Less(list[i].Name, list[j].Name)
}
示例#2
0
文件: api.go 项目: keep94/Dominator
// Less compares the hostnames of left and right.
func (mdb *Mdb) Less(left, right int) bool {
	return verstr.Less(mdb.Machines[left].Hostname,
		mdb.Machines[right].Hostname)
}