Fixes bug 863458 - Sorted versions by descending order in products service.

@rhelmer r?

Sorry I did a bit of refactoring of the tests, there is a comment near the test covering this new behavior.