# Tenzir Node v4.22.2

## 🚀 Features

### Implement `<list>.sort()` and `<record>.sort()`

Oct 28, 2024 · [@dominiklohmann](https://github.com/dominiklohmann) · [#4704](https://github.com/tenzir/tenzir/pull/4704)

The new `sort` method sorts fields in records by name and lists by values.

### Add a `value_counts` aggregation function

Oct 28, 2024 · [@dominiklohmann](https://github.com/dominiklohmann) · [#4701](https://github.com/tenzir/tenzir/pull/4701)

The new `value_counts` aggregation function returns a list of values and their frequency.

## 🐞 Bug Fixes

### Enable google-cloud-pubsub connector in the Docker Image

Oct 28, 2024 · [@IyeOnline](https://github.com/IyeOnline) · [#4690](https://github.com/tenzir/tenzir/pull/4690)

The `google-cloud-pubsub` connector and TQL2 operators `load_google_cloud_pubsub` `save_google_cloud_pubsub` operators are now available in the Docker image.

### Add a `value_counts` aggregation function

Oct 28, 2024 · [@dominiklohmann](https://github.com/dominiklohmann) · [#4701](https://github.com/tenzir/tenzir/pull/4701)

We fixed a bug that caused the `mode` aggregation function to sometimes ignore some input values.

### Explicitly close ending TCP connection sockets

Oct 28, 2024 · [@tobim](https://github.com/tobim) · [#4674](https://github.com/tenzir/tenzir/pull/4674)

We fixed a bug that sometimes prevented incoming connections from `load_tcp` from closing properly.

### Allow reinstantiating the `buffer` operator

Oct 25, 2024 · [@dominiklohmann](https://github.com/dominiklohmann) · [#4702](https://github.com/tenzir/tenzir/pull/4702)

We fixed a bug in the `buffer` operator that caused it to break when restarting a pipeline or using multiple buffers in a “parallel” context, such as in `load_tcp`’s pipeline argument.

[ Download on GitHub ](https://github.com/tenzir/tenzir/releases/tag/v4.22.2)

[Get the release artifacts and source code.](https://github.com/tenzir/tenzir/releases/tag/v4.22.2)