pub fn less_than(version1: &str, version2: &str) -> Result<bool>
Check if version1 < version2.
Returns an error if either version string is invalid.