Want to sort a table field from Twig
You can't do that with core Craft functionality or Twig filters, but as Mats already suggested in the comments, you can do it with a plugin like "Super Sort".

The template code to sort the array returned from the table field with that plugin would be:

{% for row in entry.tablefield|supersort('sortAs', '{{ object.firstName }}') %}