Orchestrator Function: Compare Two Strings

by Simon Sparks · 30 January 2026

To use this function add it to the class library file named Utilities.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: Utilities.ts

Function compareTwoString

Description: Orchestrator Function to Compare Two String

publicstaticcompareTwoString(strA:string,strB:string,enumSortOrder:SortOrder=SortOrder.Forward):0|1|-1{
returnUtilities.compareTwoVariables<string>(strA,strB,enumSortOrder);
}

Enumeration: SortOrder

exportenumSortOrder{
Forward="Forward",
Reverse="Reverse"
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like