Order by semver in terraform modules
## Context
As the last step in the road to resolve https://gitlab.com/gitlab-org/gitlab/-/issues/474746+, we need to sort ~terraform modules based on their semantic versioning that are stored now in their metadata.
So, in the endpoints that depend on fetching the latest version of a module, we should replace the current sorting with the SemVer sorting scopes available for us thanks to the `SemanticVersionable` [module](https://gitlab.com/gitlab-org/gitlab/-/blob/b28eecc39c0b6bd6081a870219cf8c4552a91f85/app/models/concerns/semantic_versionable.rb).
The change should be gated behind a ~"feature flag" as an additional safety net.
task