Fix intermittent test failures due to results ordering issues.

Make bundles-containing and charm-related API
endpoints return results in a specific order.
I'm not sure we need to sort the responses if the entities are already sorted,
which could probably be done by mongodb server side. Do we mind
that much about numeric revision ordering?