OptiFine’s versioning scheme follows most of Semantic Versioning.
Letter: major version (A-Z)
Number: minor version (1-9)
preX: preview X (>=1)
Feature sets and Minecraft version changes warrant a major version increment.
Bugfixes and small changes warrant a minor version increment.
Preview versions can increment arbitrarily in order, and their feature set is mutable.