fix ordering bug and add two methods to grid getRealColumnNames and hasEmptyData