Table producing; sorting not yet working