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
public static compareTwoString(strA: string, strB: string, enumSortOrder: SortOrder = SortOrder.Forward): 0 | 1 | -1 {
return Utilities.compareTwoVariables<string>(strA, strB, enumSortOrder);
}Enumeration: SortOrder
export enum SortOrder {
Forward = "Forward",
Reverse = "Reverse"
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
