messing around with trying to sort serial array