| SortSpecification Class |
The order in which the different criteria are added to a sort specification is essential. Only if two translation units are equivalent according to a sort criterium, the next relevant criterium will be considered in order to decide which of the translation units comes first and so on.
The sort specification consists of a collection of SortCriterium objects which in turn may refer to system fields or filter names, and include a specification whether to sort ascending or descending. Typical examples are:
Namespace: Sdl.LanguagePlatform.TranslationMemory
The SortSpecification type exposes the following members.
| Name | Description | |
|---|---|---|
| SortSpecification |
Initializes a new instance with default values.
| |
| SortSpecification(String) |
Initializes a new instance of the SortSpecification class from a string.
|
| Name | Description | |
|---|---|---|
| Count |
Gets the number of criteria in this sort specification.
| |
| Criteria |
Gets or sets the list of sort criteria.
| |
| Item |
Gets or sets the criterium at the specified index in the list.
|
| Name | Description | |
|---|---|---|
| Add |
Adds a new sort criterium to the list.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |