fixes #321: Word diff highlighting breaks for swapped phrases

fix for #321