Orders the input documents based on the specified key function.
public class OrderBy : IModule
The ordered documents are output as the result of this module.
||Orders the input documents using the specified delegate to get the ordering key.|
Specifies whether the documents should be output in descending order (the default is ascending order). If you use this method after called ThenBy, the descending ordering will apply to the secondary sort.
Orders the input documents using the specified delegate to get a secondary ordering key. You can chain as many ThenBy calls together as needed.
Specifies a comparer to use for the ordering.
Specifies a typed comparer to use for the ordering. A conversion to the comparer type will be attempted for all metadata values. If the conversion fails, the values will be considered equivalent. Note that this will also have the effect of treating different convertible types as being of the same type. For example, if you have two keys, 1 and "1", and use a string-based comparison, the documents will compare as equal.