Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1 Line Better solution in Speedy category for Sort by Extension by Alex_4444D
from typing import List
def sort_by_ext(files):
return sorted(files,key= lambda s: (bool(s[:(i:=s.rfind('.'))]), s[i+1:], s[:i]))
Nov. 7, 2021