Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Superclasses listed in random order in concept tables #8

Open
coolharsh55 opened this issue Feb 3, 2021 · 0 comments
Open

Superclasses listed in random order in concept tables #8

coolharsh55 opened this issue Feb 3, 2021 · 0 comments

Comments

@coolharsh55
Copy link
Member

Generating super/sub classes in tables results in random order, which shows up as unnecessary changes for git. To fix this, use list sort before iterating over elements within the Jinja2 template. There is already a sort filter for sub-classes

{% if term.rdfs_subClassOf is sequence and not term.rdfs_subClassOf is string %}{% for parent in term.rdfs_subClassOf|sort %}
which should be applied for superclasses

coolharsh55 added a commit that referenced this issue Feb 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant