Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
5-liner: re params solution in Clear category for Sort by Extension by przemyslaw.daniel
import re
def sort_by_ext(files):
params = r"(.+)\.(.*)|(.+)", r"\2 \3\1"
return sorted(files, key=lambda x: re.sub(*params, x))
March 19, 2020