'Returns an ordered tuple of :class:`~horizon.Dashboard` modules.
Orders dashboards according to the ``"dashboards"`` key in
``HORIZON_CONFIG`` or else returns all registered dashboards
in alphabetical order.
Any remaining :class:`~horizon.Dashboard` classes registered with
Horizon but not listed in ``HORIZON_CONFIG[\'dashboards\']``
will be appended to the end of the list alphabetically.'

def get_dashboards(self):

    if self.dashboards:
        registered = copy.copy(self._registry)
        dashboards = []
        for item in self.dashboards:
            dashboard = self._registered(item)
            dashboards.append(dashboard)
            registered.pop(dashboard.__class__)
        if len(registered):
            extra = sorted(registered.values())
            dashboards.extend(extra)
        return dashboards
    else:
        return sorted(self._registry.values())
