HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by mseepgood | Hacker News Reader
Parent
Full thread
mseepgood
·
Reversing a string does not make sense in most languages.
View on HN
rurban
·
Sorting filenames by extension
cgtyoder
·
If 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.
Reply on news.ycombinator.com