Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Custom key solution in Creative category for Sort by Extension by suic
from typing import List
def sort_by_ext(files: List[str]) -> List[str]:
def sort_func(s):
*n, e = s.split(".")
return not ((s.startswith(".") or s.endswith(".")) and s.count(".") == 1), e, n
return sorted(files, key=sort_func)
Aug. 11, 2020