Skip to content

Commit

Permalink
fix the fix to soerting
Browse files Browse the repository at this point in the history
  • Loading branch information
hydra3333 authored Jun 29, 2023
1 parent a79945d commit 4d310cb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion slideshow_CONTROLLER.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def sort_files_list(files_list, sort_type='alphabetic_files_folders'):
elif sort_type.lower() == 'alphabetic_files_folders'.lower():
#return sorted(files_list, key=lambda p: (p.parent.name.lower(), p.name.lower()))
return sorted(files_list, key=lambda p: (os.path.abspath(p).lower(), p.name.lower()))
os.path.abspath()
elif sort_type.lower() == 'win_files'.lower():
str_cmp_logical = ctypes.windll.Shlwapi.StrCmpLogicalW
windows_sort_key = lambda path: str_cmp_logical(str(path).encode('utf-16le'), str(path).encode('utf-16le'))
Expand Down

0 comments on commit 4d310cb

Please sign in to comment.