Properly sort WordPress versions

`version_compare()` can return `-1` or `0`, both of which are falsy.
This caused inconsistent results when the WordPress API started
returning versions out of order