Sort versions automatically