Oh, sorry I kind of miscounted the hyphens
and yes I was basically too focused just on the word that I forgot to count other hyphens on the line as well.
What I really wanted to do was to sort by hyphen between the first word of 3rd line which is inside
[]
And about the IPA characters/symbols, I don't think it matters as I didn't realise you were asking just for the file names. However, the file contents contains IPA symbols [International Phonetic Alphabet] like "æʊθʃŋː" to guide me to pronounce the words. For example, to pronounce apple, I refer to either [ap-uh l] OR /ˈæp əl/ written on the 3rd line of the file. Sorry, I guess I was kinda distracted in the morning as well.
Some of my file names include "!", ".", "+" instead of space. Other than that, it is all single lined file name. And there isn't any quotes.
Sorry I thought it would be simple to execute/manipulate commands to 3rd line in txt files but seems like I am in deep deep trouble for a beginner
It doesn't have to be done as this is just one of my personal project
I apologize for all the trouble caused