This fixes ordering for the following patterns: * 1.0 < 1.0a * 1.0a < 1.0ab * 1.0a < 1.0a1 Note that trailing zeros are still ignored (1.0 == 1., 1test0 == 1test), which matches the behaviour of dpkg and opkg.