Fix intermittent test failures due to results ordering issues.

Make bundles-containing and charm-related API
endpoints return results in a specific order.
It occurs to me that now we've got multiError, we could probably use it here.
We're probably still need to the sorting to get consistent keys though.

This could probably do with a doc comment anyway.