Fixes #6828/BZ1104636: show correct version of puppet module.

The latest version of puppet modules was being incorrectly
calculated, based on an incorrect assumption that the last
item in the array was the latest version.  This commit
explicitly sorts the puppet modules by the version such that
the latest version is correct.

http://projects.theforeman.org/issues/6828
https://bugzilla.redhat.com/show_bug.cgi?id=1104636
What is this API returning in terms of data right now? I can see returning the data by default sorted by version as helpful to more than just the UI. Or at least, accepting sort params and us calling the API to get the data sorted how we want as I think this benefits more use cases.