reorder F before G