Sort the list of nodes by label
()
| 832 | |
| 833 | // Sort the list of nodes by label |
| 834 | func (ns nodes) Sort() { sort.Sort(ns); ns.tailSort() } |
| 835 | func (ns nodes) Len() int { return len(ns) } |
| 836 | func (ns nodes) Swap(i, j int) { ns[i], ns[j] = ns[j], ns[i] } |
| 837 | func (ns nodes) Less(i, j int) bool { return ns[i].label < ns[j].label } |