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();
}
}