fix for sorting issue when null ping dates exist