Skip to content

Commit

Permalink
LDEV-5211 add back sort
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Dec 19, 2024
1 parent 727b447 commit e63a63d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/src/main/java/lucee/runtime/debug/DebuggerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,8 @@ public Struct getDebuggingData(PageContext pc, boolean addAddionalInfo) throws D
qrySize = Math.min(filteredPartEntries.size(), MAX_PARTS);
parts = new DebugEntryTemplatePart[qrySize];

Collections.sort(filteredPartEntries, DEBUG_ENTRY_TEMPLATE_PART_COMPARATOR);

if (filteredPartEntries.size() > MAX_PARTS) parts = filteredPartEntries.subList(0, MAX_PARTS).toArray(parts);
else parts = filteredPartEntries.toArray(parts);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
public class PageSourceCode extends SourceCode {

private final Charset charset;
private final PageSource ps;
private final PageSource ps;

public PageSourceCode(PageSource ps, Charset charset, boolean writeLog) throws IOException {
super(null, toString(ps, charset), writeLog);
Expand Down

0 comments on commit e63a63d

Please sign in to comment.