Skip to content

Commit

Permalink
sort labels prior to selecting one from multiple options
Browse files Browse the repository at this point in the history
add back changes introduced in 0b55ace
  • Loading branch information
alexskr committed May 13, 2024
1 parent b208745 commit 29e3028
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ def generate_missing_labels_each(artifacts = {}, logger, paging, page_classes, p
label = nil

if rdfs_labels && rdfs_labels.length > 0
label = rdfs_labels[0]
# this sort is needed for a predictable label selection
label = rdfs_labels.sort[0]
else
label = LinkedData::Utils::Triples.last_iri_fragment c.id.to_s
end
Expand Down

0 comments on commit 29e3028

Please sign in to comment.