Method: Sort for Channels <Data>
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Methods > Method: Sort for Channels <Data>
Method: Sort for Channels <Data>
Sorts the channels of a channel group in the Data Portal alphabetically in the script interface for internal data.
Object.Sort(Sorting, [UseChnXRelations])
| Object | Channels <Data> Object with this method | ||||||
| Sorting |
| ||||||
| [UseChnXRelations] | Boolean Specifies whether DIAdem uses the xy-channel references. If the value is TRUE and the first channel is the only x-channel in the channel group to which all other channels in the channel group refer as y-channels, DIAdem does not include the first channel in the sort. The first channel remains in the first position. |
The following example sorts the channels of the first channel groups alphabetically in ascending order:
| VBScript | Python |
Dim oMyChannels Set oMyChannels = Data.Root.ChannelGroups(1).Channels Call oMyChannels.Sort(eSortAlphaAscending, True)