wordOrder returns array of words sorted first by the number of times it appears, then by order of appeance