added ability to sort up to 9 xbee's signals