void DepthSort() { var st = new SortTool <BaseUnit>(); foreach (var ub in _unitList) { st.AddItem((int)(ub.SortValue * 100), ub); } var sortList = st.Sort(true); for (int i = 0; i < sortList.Length; i++) { sortList[i].SetSortValue(i); } }
private void SortTags() { SortTool.SortList(Tags, TagSortProperty); }
private void SortSources() { SortTool.SortList(Sources, SourceSortProperty); }
private void SortDishes() { SortTool.SortList(Dishes, DishSortProperty); }
public void SetTagSortProperty(string path) { SortTool.SetSortProperty(TagSortProperty, path, SortTags); }
public void SetSourceSortProperty(string path) { SortTool.SetSortProperty(SourceSortProperty, path, SortSources); }
public void SetDishSortProperty(string path) { SortTool.SetSortProperty(DishSortProperty, path, SortDishes); }