Modifica

Condividi tramite


AddressEntries.Sort(Object, Object) Method

Definition

Sorts the collection of items by the specified property. The index for the collection is reset to 1 upon completion of this method.

public void Sort (object Property, object Order);
Public Sub Sort (Optional Property As Object, Optional Order As Object)

Parameters

Property
Object

The name of the property by which to sort, which may be enclosed in brackets, for example, "[CompanyName]". May not be a user-defined field, and may not be a multi-valued property, such as a category.

Order
Object

The order for the specified address entries. Can be one of these OlSortOrder constants: olAscending, olDescending, or olSortNone.

Remarks

Sort only affects the order of items in a collection. It does not affect the order of items in an explorer view.

Applies to