[ubuntu] Bash Script outputs to text file But it's not in alphabetical order?

view full story

http://ubuntuforums.org – Hello All, I have been trying to get this script to work properly and I have nearly given up. That is why I thought I would post here for some help. This is not my script, I found it on the internet and have tried to adapt it to my needs but am not having to much luck. I know there is some extra stuff in the script that I don't need but it runs sort of? I am not a scripter or coder by any means, getting a bit too old for that I think. The script runs but what I would like it to do is output to a text file in my home directory. It outputs now but the results are not in alphabetical order and I (Hardware)