ValueExtensionsOrderBy Method

Sorts the Values of a sequence according to the specified String.
When using this method to order and assign the result to a ReadValue, also add PagingHandled to the Options of the same Command to inform the TwinCAT HMI server that sorting was handled by the TwinCAT HMI server extension and must not be handled again by the TwinCAT HMI server.


Namespace: TcHmiSrv.Core.Tools.Queries.Extensions
Assembly: TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 3.1.7447.0+85f9b473a1dd11b8f3e5c9a182fd1901975e46f9

Syntax

C#

public static IOrderedEnumerable<Value> OrderBy(
    this IEnumerable<Value> collection,
    string orderBy
)

Parameters

collection  IEnumerableValue

The sequence of Values to order.

orderBy  String

A String that describes how to order collection.

Return Value

IOrderedEnumerable Value
An IOrderedEnumerableTElement whose Values are sorted according to orderBy.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Version Information

Supported in: 3.1.7447.0, 2.3.7447.0, 1.10.7447.0

Reference

ValueExtensions Class TcHmiSrv.Core.Tools.Queries.Extensions Namespace

Copyright © Beckhoff Automation GmbH & Co. KG