Skip to content

Commit

Permalink
Fix synonym typedef sorting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Jul 24, 2023
1 parent 79a69dd commit f622cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyobo/struct/struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def iterate_obo_lines(self) -> Iterable[str]:
for prefix, url in sorted((self.idspaces or {}).items()):
yield f"idspace: {prefix} {url}"

for synonym_typedef in sorted((self.synonym_typedefs or []), key=attrgetter("id")):
for synonym_typedef in sorted((self.synonym_typedefs or []), key=attrgetter("curie")):
yield synonym_typedef.to_obo()

yield f"ontology: {self.ontology}"
Expand Down

0 comments on commit f622cde

Please sign in to comment.