Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Sort by Extension by icecold
from typing import List
def sort_by_ext(files: List[str]) -> List[str]:
key_func = lambda x: s[::-1] if (s := x.rsplit('.', maxsplit=1))[0] else s
files.sort(key=key_func)
return files
Aug. 26, 2021