Skip to content

Commit

Permalink
sort CatPrez Resources
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholascar committed Feb 7, 2023
1 parent af3fb66 commit dd19b4b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions prez/renderers/catprez/catprez_catalog_renderer.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import csv
from io import StringIO
from operator import itemgetter
from typing import Dict, Optional, Union

from connegp import MEDIATYPE_NAMES
from fastapi.responses import Response, JSONResponse, PlainTextResponse
from typing import Dict, Optional, Union

from prez.config import *
from prez.models.catprez import CatPrezCatalog
Expand Down Expand Up @@ -99,7 +98,7 @@ def _render_dcat_html(
"profiles": self.profile_details.available_profiles_dict,
"default_profile": self.profile_details.default_profile,
"mediatype_names": MEDIATYPE_NAMES,
"parts": parts,
"parts": sorted(parts, key=itemgetter(1))
}
if template_context is not None:
_template_context.update(template_context)
Expand Down

0 comments on commit dd19b4b

Please sign in to comment.