4 ms·
Sorting filenames by extension
by rurban 6y ago
Sorting filenames by extension
- cgtyoder 6y agoIf you reverse a filename string, you'd be sorting by a reversed extension. Most mature programming language infrastructures have a FilenameExtension() function or similar which in this case would be the best to use.