bash sorting script