A
A
Andrey Plax2015-03-19 12:44:02
Programming
Andrey Plax, 2015-03-19 12:44:02

Software release number comparison algorithm (1.2.345 and 1.12.3.45 and 1.111.23.4.5)?

By what principle is it more correct to compare the numbering of software releases of the type: 1.2.345 and 1.12.3.45 and 1.111.23.4.5?
(When you need to know which software version is newer, but not by date).
Split or into blocks separated by dots and compare one by one if the previous ones === ?
Or convert to some other format?
Or am I looking in the wrong direction at all?
Thanks in advance for the constructive!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2015-03-19
@gbg

Parse point by point, then - in lexicographic order, considering numbers as an alphabet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question