3 ms·Reversing a string does not make sense in most languages.by mseepgood 6y agoReversing a string does not make sense in most languages.rurban 6y agoSorting filenames by extensioncgtyoder 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.