toSort = new ArrayList(Arrays.asList(new Object[] {md[0], md[2], md[1], md[3]}));
assertSorted(md, ivy.sortModuleDescriptors(toSort));
toSort = new ArrayList(Arrays.asList(new Object[] {md[0], md[1], md[2], md[3]}));
assertSorted(md, ivy.sortModuleDescriptors(toSort));
toSort = new ArrayList(Arrays.asList(new Object[] {md[1], md[0], md[2], md[3]}));
assertSorted(md, ivy.sortModuleDescriptors(toSort));
toSort = new ArrayList(Arrays.asList(new Object[] {md[1], md[2], md[0], md[3]}));
assertSorted(md, ivy.sortModuleDescriptors(toSort));
toSort = new ArrayList(Arrays.asList(new Object[] {md[2], md[1], md[0], md[3]}));
assertSorted(md, ivy.sortModuleDescriptors(toSort));
toSort = new ArrayList(Arrays.asList(new Object[] {md[2], md[0], md[1], md[3]}));