Context:
The implementration of #getLatestVersionToKey returns wrong results if there are more than 9 versions as the string sorting considers e.g. "9" bigger than "10". This is caused due to the version field being a keyword in elasticsearch.
AT:
- the actual biggest version in terms of number comparison is returned