code: def get_app_list(site, request):
      app_dict = _build_app_dict(site, request)
      app_list = sorted(app_dict.values(), key=lambda x: x['name'].lower())
      for app in app_list:
          app['models'].sort(key=lambda x: x['name'])
      return app_list