added reorder function to switch around first and last names