I would like to sort objects in array by the sum of fields of these objects.

Example:

```
var array = [
  {id: 1, T: 3, G: 3, K: 3},
  {id: 2, T: 5, G: 5, K: 5},
  {id: 3, T: 4, G: 4, K: 4}
];

```

How can I sort these objects by the sum of T, G, K? Thanks