Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Sort files by extension and file name, one line solution in Creative category for Sort by Extension by PonomarevIK
def sort_by_ext(files: list) -> list:
return sorted(sorted(files), key=lambda x: x.rsplit(".", 1)[-1] if ("." in x and x.rsplit(".", 1)[-2]) else "")
March 24, 2022