Sort the list of nodes by label
()
| 784 | |
| 785 | // Sort the list of nodes by label |
| 786 | func (ns nodes) Sort() { sort.Sort(ns); ns.tailSort() } |
| 787 | func (ns nodes) Len() int { return len(ns) } |
| 788 | func (ns nodes) Swap(i, j int) { ns[i], ns[j] = ns[j], ns[i] } |
| 789 | func (ns nodes) Less(i, j int) bool { return ns[i].label < ns[j].label } |