Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Reversing a string does not make sense in most languages.


Sorting filenames by extension


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: