Php Parse String Into Arraylist Sort Java