re-arrange the order of text