Followup to issue #14157: respect the relative ordering of values produced by time.strptime().
Patch by Hynek.