Add this back. This was removed by accident.

Change-Id: I9efa8dad078ca4f0bf1d338a5aab72ff7e65980f
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index a668a2c..d1ef841f 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -377,6 +377,10 @@ short ScTable::CompareCell( sal_uInt16 nSort,
    short nRes = 0;

    CellType eType1 = CELLTYPE_NONE, eType2 = CELLTYPE_NONE;
    if (pCell1)
        eType1 = pCell1->GetCellType();
    if (pCell2)
        eType2 = pCell2->GetCellType();

    if (pCell1)
    {