Table structure

```js
import TableRow from 'components/TableRow';
import TableHeader from 'components/TableHeader';
import TableCell from 'components/TableCell';
import AvatarCard from 'components/AvatarCard';
<Table>
  <TableHeader align="center">
    <TableCell >Header1</TableCell>
    <TableCell>Header2</TableCell>
    <TableCell>Header3</TableCell>
  </TableHeader>
  <TableRow >
    <TableCell>Body</TableCell>
    <TableCell>
      <AvatarCard icon={true}>
        <AvatarCard.Bubble></AvatarCard.Bubble>
        <AvatarCard.Profile>{'Name'}{'Description'}</AvatarCard.Profile>
      </AvatarCard>
    </TableCell>
    <TableCell>Body</TableCell>
  </TableRow>
  <TableRow autoFocus>
    <TableCell>Body</TableCell>
    <TableCell>
      <AvatarCard icon={true}>
        <AvatarCard.Bubble></AvatarCard.Bubble>
        <AvatarCard.Profile>{'Name'}{'Description'}</AvatarCard.Profile>
      </AvatarCard>
    </TableCell>
    <TableCell>Body</TableCell>
  </TableRow>
  <TableRow>
    <TableCell>Body</TableCell>
    <TableCell>
      <AvatarCard icon={true}>
        <AvatarCard.Bubble></AvatarCard.Bubble>
        <AvatarCard.Profile>{'Name'}{'Description'}</AvatarCard.Profile>
      </AvatarCard>
    </TableCell>
    <TableCell>Body</TableCell>
  </TableRow>
  <TableRow>
    <TableCell>Body</TableCell>
    <TableCell>
      <AvatarCard icon={true}>
        <AvatarCard.Bubble></AvatarCard.Bubble>
        <AvatarCard.Profile>{'Name'}{'Description'}</AvatarCard.Profile>
      </AvatarCard>
    </TableCell>
    <TableCell>Body</TableCell>
  </TableRow>
</Table>
```
Table with sorting

```js
import TableRow from 'components/TableRow';
import TableCell from 'components/TableCell';
import TableSortLabel from 'components/TableSortLabel';
import AvatarCard from 'components/AvatarCard';

import { useState } from 'react';

const [orderBy, setOrderBy] = useState('location');
const [order, setOrder] = useState('asc');
const [active, setActive] = useState(false);

const data = [
  { key: 'row1',
    location: { value: 'a', render: <div>a</div> },
    createdBy: { value: 'e', render: <div>e</div> },
    lastUpdated: { value: '1', render: <div>1</div> },
    avatar: {
      value: 'dagget',
      render:
      <AvatarCard size='x2' icon={true}>
      <AvatarCard.Bubble src="https://icon-library.net/images/avatar-png-icon/avatar-png-icon-23.jpg" />
      <AvatarCard.Profile>
        {'Daggett'}
        {'Beaver'}
      </AvatarCard.Profile>
      </AvatarCard>
    }
  },
  { key: 'row2',
    location: { value: 'b', render: <div>b</div> },
    createdBy: { value: 'f', render: <div>f</div> },
    lastUpdated: { value: '2', render: <div>2</div> },
    avatar: {
      value: 'norbert',
      render:
      <AvatarCard size='x2' icon={true}>
      <AvatarCard.Bubble src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQjETQNompY6pN9qanLLIobY5w0giHC-eXa4bgZefCCVABcfs8A&s"></AvatarCard.Bubble>
      <AvatarCard.Profile>
        {'Norbert Foster'}
        {'Beaver'}
      </AvatarCard.Profile>
      </AvatarCard>
    }
  },
  { key: 'row3',
    location: { value: 'c', render: <div>c</div> },
    createdBy: { value: 'g', render: <div>g</div> },
    lastUpdated: { value: '3', render: <div>3</div> },
    avatar: {
      value: 'dagget',
      render:
      <AvatarCard size='x2' icon={true}>
      <AvatarCard.Bubble src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQjETQNompY6pN9qanLLIobY5w0giHC-eXa4bgZefCCVABcfs8A&s"></AvatarCard.Bubble>
      <AvatarCard.Profile>
        {'Daggett'}
        {'Beaver'}
      </AvatarCard.Profile>
      </AvatarCard>
    }
  },
  { key: 'row4',
    location: { value: 'd', render: <div>d</div> },
    createdBy: { value: 'h', render: <div>h</div> },
    lastUpdated: { value: '4', render: <div>4</div> },
    avatar: {
      value: 'norbert',
      render:
      <AvatarCard size='x2' icon={true}>
      <AvatarCard.Bubble src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQjETQNompY6pN9qanLLIobY5w0giHC-eXa4bgZefCCVABcfs8A&s"></AvatarCard.Bubble>
      <AvatarCard.Profile>
        {'Norbert Foster'}
        {'Beaver'}
      </AvatarCard.Profile>
      </AvatarCard>
    }
  },
];

const descendantFunction = (a, b) => {
  if (b < a) {
  return -1;
  }
  if (b > a) {
    return 1;
  }
  return 0;
};
const sortFuntion = (array, orderBy) => array.sort((a ,b) => {
  return order === 'asc' ? !descendantFunction(a[orderBy].value, b[orderBy].value) : descendantFunction(a[orderBy].value, b[orderBy].value);
});

const handleClick = param => {
  setOrderBy(param);
  order === 'desc' ? setOrder('asc') : setOrder('desc');
};

<div style={{backgroundColor: '#e4e4e4', padding: '15px'}}>
<Table space= '10'>
  <TableRow align= 'center'>
    <TableCell>
      <TableSortLabel
        active = { orderBy === 'location' }
        direction = {order}
        onClick={() => handleClick('location')}
      >
      Location
      </TableSortLabel>
    </TableCell>
    <TableCell>
      <TableSortLabel
        active = { orderBy === 'createdBy' }
        direction = {order}
        onClick = {() => handleClick('createdBy')}
      >
      Created By
      </TableSortLabel>
    </TableCell>
    <TableCell>
      <TableSortLabel
        active = { orderBy === 'lastUpdated' }
        direction = {order}
        onClick = {() => handleClick('lastUpdated')}
      >
      Last Update
      </TableSortLabel>
    </TableCell>
    <TableCell>
      <TableSortLabel
        active = { orderBy === 'avatar' }
        direction = {order}
        onClick = {() => handleClick('avatar')}
      >
      Avatar
      </TableSortLabel>
    </TableCell>
  </TableRow>
  {sortFuntion(data, orderBy).map(row => (
    <TableRow key={row.key}>
      <TableCell key={row.location.value}>{row.location.render}</TableCell>
      <TableCell key={row.createdBy.value}>{row.createdBy.render}</TableCell>
      <TableCell key={row.lastUpdated.value}>{row.lastUpdated.render}</TableCell>
      <TableCell key={row.avatar.value}>{row.avatar.render}</TableCell>
    </TableRow>    
  ))}
</Table>
</div>
```
