Skip to content

Commit

Permalink
Merge pull request #639 from FgForrest/638-nested-entities-are-not-so…
Browse files Browse the repository at this point in the history
…rted-when-hierarchy-requirement-is-used

fix(#638): Nested entities are not sorted when `hierarchy` requiremen…
  • Loading branch information
novoj authored Aug 1, 2024
2 parents e03129b + ca5bfa2 commit bed4cc1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
Expand Down Expand Up @@ -103,7 +104,9 @@ private static List<LevelInfo> sort(@Nonnull List<LevelInfo> result, @Nonnull in
)
);
} else {
return result;
return Collections.singletonList(
levelInfoToSort[0]
);
}
}

Expand Down

0 comments on commit bed4cc1

Please sign in to comment.