If so, I would add a test case `assert sortbyext(['...cad', '1.bat', '..cad']) == ['...cad', '..cad', '1.bat']`. This is not covered by existing test cases.