Zetbox.Client.Presentables.ZetboxBase.InstanceListViewModel.Sort C# (CSharp) Method

Sort() public method

public Sort ( string orderByExpression, System direction ) : void
orderByExpression string
direction System
return void
        public void Sort(string orderByExpression, System.ComponentModel.ListSortDirection direction)
        {
            if (string.IsNullOrEmpty(orderByExpression)) throw new ArgumentNullException("orderByExpression");
            __orderByExpressionInitialized = true;
            __orderByExpression = orderByExpression;
            __sortDirection = direction;
            if (_instancesFromServer.Count < Helper.MAXLISTCOUNT)
            {
                UpdateFilteredInstances();
            }
            else
            {
                Refresh();
            }
        }