Skip to content

Commit

Permalink
Merge pull request #30 from KPMP/KPMP-5460_sort_exp_strat_field
Browse files Browse the repository at this point in the history
KPMP-5460: Replace HashSet with TreeSet so contents get sorted
  • Loading branch information
zwright authored Aug 1, 2024
2 parents 0194d64 + c525d62 commit ff59f7a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.kpmp.repositoryDataset;

import java.util.HashSet;
import java.util.TreeSet;
import java.util.Set;
import com.fasterxml.jackson.annotation.JsonProperty;

Expand Down Expand Up @@ -38,7 +39,7 @@ public RepositoryDatasetDisplay(RepositoryFileDataset repositoryFile) {
doi = new HashSet<String>();
protocol = new HashSet<String>();
tissueSource = new HashSet<String>();
experimentalStrategy = new HashSet<String>();
experimentalStrategy = new TreeSet<String>();
workflowType = new HashSet<String>();
redcapId.add(repositoryFile.getId().getRedcapId());
if (shouldAdd(repositoryFile.getSampleType())) {
Expand Down

0 comments on commit ff59f7a

Please sign in to comment.