We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe9d282 commit d38eda7Copy full SHA for d38eda7
forms-flow-service/src/helpers/helperServices.ts
@@ -84,6 +84,13 @@ class HelperServices {
84
exactRouteMatches.some((route) => location == route) ||
85
partOfRouteMatches.some((route) => location.includes(route))
86
);
87
+ }
88
+
89
+ public static getResetSortOrders(options){
90
+ return options.reduce((acc, option) => {
91
+ acc[option.value] = {sortOrder:"asc"} // Reset all to ascending
92
+ return acc;
93
+ }, {});
94
}
95
96
0 commit comments