Fix catalog item ordering for determining the latest stable.

Prefer 2.3.0 over 2.3.0-build, 2.3.0-rc10 over 2.3.0-rc1
fix hardcoded parameter in test
This closes #335