Fixes a problem with content version compares

Due to sorting the newer content version would sometimes be treated as the
old version and vice versa.