andymatuschak/Sparkle — Issue #31: Sparkle assumes that greater versions are always newer, which is wrong
Author: andymatuschak
Created: 2011-10-23 17:10:16+00:00
State: open

***Peter Hosey (boredzo)** [reported (on Launchpad)](https://bugs.launchpad.net/sparkle/+bug/391965) on' 2009-06-25:*

When Sparkle looks for a usable version among the appcast items (see #228485), it sorts the items by date.
This is a problem, demonstrated by Adium 1.4b6.

Our appcast for Adium betas includes both 1.4b7 and 1.3.5; of these,
1.3.5 is actually the newer (more recent) release. Because Sparkle sorts
the items by date, it looks at 1.3.5 first; it finds that 1.3.5 will run
on the host, so it stops looking for more versions. However, 1.3.5 is a
lower version number than 1.4b7, so it tells the user that “1.4b6 is the
latest version available!”—which is wrong, since b7 is available.

We're not sure exactly which version of Sparkle we're using (it was a
build from source, and the developer who committed it didn't note the
version in his commit message). All I know is that CFBundleVersion is
340, for whatever that's worth.