Example #1
0
        IEnumerable <PackageInfo> OrderPackages()
        {
            if (_view.GetList(DragListTypes.Package).SortDescending)
            {
                return(_model.GetCurrentFolderPackages().OrderByDescending(x => GetPackageSortField(x)));
            }

            return(_model.GetCurrentFolderPackages().OrderBy(x => GetPackageSortField(x)));
        }