Added test and fixed bug for Arbor.sort_vines()