Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XHXIAIEIN committed Jun 5, 2024
1 parent 13846c9 commit ba16728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ document.addEventListener('DOMContentLoaded', () => {
return files.sort((a, b) => {
switch (order) {
case 'nameAsc':
return a.localeCompare(b);
return a.name.localeCompare(b.name);
case 'nameDesc':
return b.localeCompare(a);
return b.name.localeCompare(a.name);
case 'dateAsc':
return a.lastModified - b.lastModified;
case 'dateDesc':
Expand Down

0 comments on commit ba16728

Please sign in to comment.