Verbesserter Algorithmus in "renderAsTable".