To reproduce the issue with s_string.ok, insert an out-of-order entry in that file:
diff --git a/dist/s_string.ok b/dist/s_string.ok index f266c82557..be12213b0d 100644 --- a/dist/s_string.ok +++ b/dist/s_string.ok @@ -439,8 +439,8 @@ WriteFile Wundef Wuninitialized Wunused -XP Xorshift +XP YCSB ZSTD Zlib
Then run s_string and the following should spam your terminal:
~/wiredtiger/dist$ ./s_string comm: file 2 is not in sorted order comm: file 2 is not in sorted order comm: file 2 is not in sorted order comm: file 2 is not in sorted order comm: file 2 is not in sorted order comm: file 2 is not in sorted order comm: file 2 is not in sorted order comm: file 2 is not in sorted order comm: file 2 is not in sorted order ...
We could simply error out if the file is not sorted or sort it in place.