// SortLinksByID order the links of a dir by id.
SortLinksByID order the links of a dir by id.
// SortLinksByID order the links of a dir by id .
func (vn *VNode) SortLinksByID() {
	sort.SliceStable(vn.Links, func(i, j int) bool {
		firstID := vn.Links[i].GetID()
		secondID := vn.Links[j].GetID()
		compareVal := strings.Compare(firstID, secondID)
		return compareVal == 0 || compareVal < 0
	})
}
func ( vn * VNode ) SortLinksByID ( ) { sort . SliceStable ( vn . Links , func ( i , j int ) bool { firstID := vn . Links [ i ] . GetID ( ) secondID := vn . Links [ j ] . GetID ( ) compareVal := strings . Compare ( firstID , secondID ) return compareVal == 0 || compareVal < 0 } ) }
SortLinksByID order the links of a dir by id.
SortLinksByID order the links of a dir by id .
// TODO: Sorting should be done during addition of vnode element to link -> NewVNode //       determine is sorting is necessary ? order deterministic ?