My Day✳All blog articles ↗

Compare revision numbers, not filename positions

Compare declared revision integers separately from filename position.

The last filename in a sorted list is not necessarily the higher revision. If one series uses increasing integer revisions, compare that component separately from character position and approval status.

Revision labels: 2 earlier; 10 later
Revision labels: 2 earlier; 10 later

What to do

  1. Confirm that both names belong to one series with an established integer revision scheme.
  2. Extract and compare the integers while checking the stated character ordering.
  3. Record the higher revision, then determine separately which revision is approved for use.

Example

Fictionally, memo-v2.txt and memo-v10.txt use a declared increasing-integer scheme. The specified character order is memo-v10.txt, then memo-v2.txt; the last row is not newer. Since 2<10, memo-v10.txt has the higher revision. This applies only to this pair and scheme. Approval of v10 is unchecked; other programs’ ordering is not assumed.

My Day · Windows

Save this note manually in My Day.

Buy My Day for Windows ↗