Skip to content

sort-triples: Add option to sort triples as numbers not as strings #380

@TobiasNx

Description

@TobiasNx

If you count-triples and then sort-triples(by="OBJECT") values are as sorted as strings. OBJECT after counting is the counted number as string.

e.g.: following list (with template("${o}\t${s}"))

...
24      metadata.mods.relatedItem.typeOfResource.usage
248     metadata.mods.name.role.roleTerm.value
27      metadata.mods.subject.type
29      metadata.mods.abstract.value
29      metadata.mods.name.affiliation.value
3       metadata.mods.originInfo.dateModified.encoding
3       metadata.mods.originInfo.dateModified.value
30      metadata.mods.relatedItem.abstract.altRepGroup
320     metadata.mods.name.role.roleTerm.authority
320     metadata.mods.name.role.roleTerm.type
322     metadata.mods.name.type
...

It would be great if triples could also be sorted as numbers not just as string.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions