Hit.sort() method contract cnanges

Hello, we use elasticsearch-java client version 8.4.3. after upgrading to 8.13.4 we found that the contract for Hit.sort method changed (returns List<FieldValue> instead of List<String>).

could you suggest please how to use it now without changing the contract for our clients (they send us List<String> for searchAfter functionality and we also return them List<String>).
Can the _toJsonString method be used for it?

Thanks in advance

Hello! Correct, _toJsonString will convert whatever type is found in the value field or FieldValue to String.