# Sorting get Aliases

**URL:** <https://discuss.elastic.co/t/sorting-get-aliases/359927>\
**Category:** Elasticsearch\
**Created:** [May 21, 2024, 1:44pm UTC](https://discuss.elastic.co/t/sorting-get-aliases/359927 "2024-05-21T13:44:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![avnere](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@avnere](https://discuss.elastic.co/u/avnere)\
**Post date:** [May 21, 2024, 1:44pm UTC](https://discuss.elastic.co/t/sorting-get-aliases/359927/1 "2024-05-21T13:44:19Z")

</div>

Hi,

I am looking way to execute cat in the new Java client

```auto
GET _cat/aliases/bbb*/?format=json&s=is_write_index:desc

```

I found this way:

```auto
AliasesRequest request = AliasesRequest.of(ar -> ar.name(pattern));		
		
		var response = client.cat().aliases(request);
		
		return response.valueBody();

```

How can I add the following:  
s=is\_write\_index:desc

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [May 21, 2024, 7:55pm UTC](https://discuss.elastic.co/t/sorting-get-aliases/359927/2 "2024-05-21T19:55:09Z")

</div>

Hi @avnere

I believe I've seen this question on the forum and I don't think there was an answer.  
Perhaps in the current version of the lib it is not possible to pass these additional parameters.  
Have you tried using a more generic approach?

---

<div class="post-metadata">

**Author:** ![avnere](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@avnere](https://discuss.elastic.co/u/avnere)\
**Post date:** [May 22, 2024, 7:15am UTC](https://discuss.elastic.co/t/sorting-get-aliases/359927/3 "2024-05-22T07:15:39Z")

</div>

What do you mean generic approach?
