This does not work and it only puts the same characters together.
I won’t be looking at the exercise solution and I am not looking for an actual answer here but more like a guidance what I can really do to continue on this one.
Looking at the documentation about_Join I can’t seem to understand what it is that I need to join to make this happen.
-join is a string operator which takes a value of what you want to go in between the joined values. If you want nothing between them then -join ‘’ (two single quotes)
That output from Sort-Object is not sorting them alphabetically, the letter “e” should be at the beginning, followed by “f” and so on, this is what I meant.
Ok, Now I understood how the Sort-Object works for strings, it takes the Upper case characters and puts them on top of the sorting, I was confused and like, why the F,P,S were at the beginning ? lol