Reorder entities
This is easier to accomplish using arcticdatautils
An example reorganizing alphabetically
- Metadata
doc$dataset$otherEntity <- doc$dataset$otherEntity[order(entity_names)]
- Data files and PIDs retrieved with
get_package
pkg <- get_package(adc, rm, file_names = T)
doc <- EML::read_eml(getObject(adc, pkg$metadata))
reordered <- arcticdatautils::reorder_pids(pkg$data, doc)