Replace all occurrences of nub with ordNub