fix sorting of NULL companies differently than empty companies