A function to handle multiple datatypes

Just one other quick question:
How might I modify the above code to send the bytes MSB first?