Sorting on file name length?

This is just a case of "wondering", not taken too seriously, but anyway:

can DO sort files in filename length ?
longest file name is displayed on top,
second longest file name second etc,

longest as in : most characters.

example:

test12345.txt
test1245.txt
test12.txt

etc..

You can add a script column that shows filename length and then sort by that.

One is here:

In addition to the script column Jon mentions above, there's also a built-in Path Length column, which gives you the length of the full path of each file.

Sorting by that will give you the same sort order as sorting by name in most cases (since all files are usually in the same parent folder). The script column is good if you need to know the actual filename (not path) lengths and/or need to sort by them in file collections, libraries, flat view, etc.

Thanks all!