Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Get to the point! solution in Clear category for Sort by Extension by veky
def extension_then_stem(filename):
try: point = filename.rindex('.', 1)
except ValueError: point = len(filename)
return filename[point:], filename[:point]
from functools import partial
sort_by_ext = partial(sorted, key=extension_then_stem)
July 15, 2020
Comments: