diff --git a/langlib/lang.array/src/main/java/org/ballerinalang/langlib/array/Sort.java b/langlib/lang.array/src/main/java/org/ballerinalang/langlib/array/Sort.java index 2f80505d75f8..f1191a84b226 100644 --- a/langlib/lang.array/src/main/java/org/ballerinalang/langlib/array/Sort.java +++ b/langlib/lang.array/src/main/java/org/ballerinalang/langlib/array/Sort.java @@ -54,7 +54,7 @@ public static BArray sort(BArray arr, Object direction, Object func) { // Check if the array type is an Ordered type, otherwise a key function is mandatory if (!isOrderedType(arrType) && function == null) { throw ErrorCreator.createError(getModulePrefixedReason(ARRAY_LANG_LIB, INVALID_TYPE_TO_SORT), - StringUtils.fromString("Valid key function required")); + StringUtils.fromString("valid key function required")); } Object[][] sortArr = new Object[arr.size()][2]; Object[][] sortArrClone = new Object[arr.size()][2]; diff --git a/langlib/lang.array/src/main/java/org/ballerinalang/langlib/array/utils/SortUtils.java b/langlib/lang.array/src/main/java/org/ballerinalang/langlib/array/utils/SortUtils.java index ac9b74eadb50..daf1ec39a765 100644 --- a/langlib/lang.array/src/main/java/org/ballerinalang/langlib/array/utils/SortUtils.java +++ b/langlib/lang.array/src/main/java/org/ballerinalang/langlib/array/utils/SortUtils.java @@ -34,7 +34,7 @@ /** * A utility class containing methods needed for the sort operation on tuples and arrays. * - * @since 2201.10.0 + * @since 2201.11.0 */ public class SortUtils { diff --git a/langlib/langlib-test/src/test/resources/test-src/arraylib_test.bal b/langlib/langlib-test/src/test/resources/test-src/arraylib_test.bal index e460ef601899..01e0d094abaa 100644 --- a/langlib/langlib-test/src/test/resources/test-src/arraylib_test.bal +++ b/langlib/langlib-test/src/test/resources/test-src/arraylib_test.bal @@ -1946,7 +1946,7 @@ function testSortNegative() { assertTrue(res is error); if(res is error) { assertValueEquality("{ballerina/lang.array}SortOperationError", res.message()); - assertValueEquality("Valid key function required", checkpanic res.detail()["message"]); + assertValueEquality("valid key function required", checkpanic res.detail()["message"]); } } }