Class SortSpecification
Encapsulates a set of criteria used for sorting translation units.
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:
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
[DataContract]
public class SortSpecification
Constructors
SortSpecification()
Initializes a new instance with default values.
Declaration
public SortSpecification()
SortSpecification(string)
Initializes a new instance of the SortSpecification class from a string.
Declaration
public SortSpecification(string sortSpecification)
Parameters
Type | Name | Description |
---|---|---|
string | sortSpecification | The string containing the serialized form of a sort specification. |
Properties
Count
Gets the number of criteria in this sort specification.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
Criteria
Gets or sets the list of sort criteria.
Declaration
[DataMember]
public List<SortCriterium> Criteria { get; }
Property Value
Type | Description |
---|---|
ListSortCriterium |
this[int]
Gets or sets the criterium at the specified index in the list.
Declaration
public SortCriterium this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Property Value
Type | Description |
---|---|
SortCriterium | The sort criterium at the given index. |
Methods
Add(SortCriterium)
Adds a new sort criterium to the list.
Declaration
public void Add(SortCriterium sc)
Parameters
Type | Name | Description |
---|---|---|
SortCriterium | sc | The sort criterium. |