Skip to content

Commit

Permalink
changed applying sort
Browse files Browse the repository at this point in the history
  • Loading branch information
HWTjac0 committed Jul 6, 2024
1 parent 954f6c1 commit 7dc84a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utilities/project_forms/SortHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ export class SortHandler {
}
applySort() {
for (const [idx, cont] of this.containerEls.entries()) {
const frag = document.createDocumentFragment();
for (const project of this.projectsCont[idx]) {
cont.appendChild(project.project);
frag.appendChild(project.project);
}
cont.appendChild(frag);
}
}
sortAlpha(a: Project, b: Project): number {
Expand Down

0 comments on commit 7dc84a5

Please sign in to comment.