Bug: Unsorted stream bookmark missing greater-than comparison

Reported by @pierre de Poulpiquet in slack:

While reading the SDK code, I couldn’t really understand how it would perform with a stream of un-sorted records with a replication key.

https://gitlab.com/meltano/singer-sdk/-/blob/main/singer_sdk/helpers/_state.py#L178

Here, the code to increment the state doesn’t seem to check that the new replication key value is “after” the previous replication key value, is it?

Edited by AJ Steers