Bash Read String Into Arraylist Sort