# Search REST API sorting by version doesn't work in Nexus Repo 3.25

**URL:** https://community.sonatype.com/t/search-rest-api-sorting-by-version-doesnt-work-in-nexus-repo-3-25/4663
**Category:** Sonatype Nexus Repository
**Tags:** rest, api
**Created:** [July 20, 2020, 1:36pm UTC](https://community.sonatype.com/t/search-rest-api-sorting-by-version-doesnt-work-in-nexus-repo-3-25/4663 "2020-07-20T13:36:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dominique.thery](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@dominique.thery](https://community.sonatype.com/u/dominique.thery)
#### Post date: [July 20, 2020, 1:36pm UTC](https://community.sonatype.com/t/search-rest-api-sorting-by-version-doesnt-work-in-nexus-repo-3-25/4663/1 "2020-07-20T13:36:56Z")

</div>

Hi,

I’ve been using the search REST API with Nexus Repo 3.24.0-02 (OSS), searching for component, sorting by version and it works well : results are displayed by version descended, by default.

I upgraded to the latest 3.25.0-03 (still OSS), and the search results are not sorted anymore, even when forcing the “direction=desc” parameter.

Could you check that this is not a regression?  
Thanks!

---

<div class="post-metadata">

### Author: ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)
#### Post date: [July 20, 2020, 2:33pm UTC](https://community.sonatype.com/t/search-rest-api-sorting-by-version-doesnt-work-in-nexus-repo-3-25/4663/2 "2020-07-20T14:33:49Z")

</div>

Yes, unfortunately it seems like we had a regression in the release there is a ticket open - [https://issues.sonatype.org/browse/NEXUS-24601](https://issues.sonatype.org/browse/NEXUS-24601)

---

<div class="post-metadata">

### Author: ![przemyslaw.czajkowski](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@przemyslaw.czajkowski](https://community.sonatype.com/u/przemyslaw.czajkowski)
#### Post date: [January 10, 2022, 10:26am UTC](https://community.sonatype.com/t/search-rest-api-sorting-by-version-doesnt-work-in-nexus-repo-3-25/4663/3 "2022-01-10T10:26:59Z")

</div>

This issue seems to be present in OSS 3.37.1 version as well. I suppose the bug has been reintroduced. Do you think it will be fixed soon?

---

<div class="post-metadata">

### Author: ![hgoncalves](https://avatars.discourse-cdn.com/v4/letter/h/0ea827/32.png) [@hgoncalves](https://community.sonatype.com/u/hgoncalves)
#### Post date: [March 25, 2022, 8:25am UTC](https://community.sonatype.com/t/search-rest-api-sorting-by-version-doesnt-work-in-nexus-repo-3-25/4663/4 "2022-03-25T08:25:54Z")

</div>

Hello,

we are facing same bug in 3.37.3-02, did we have one solution?

Thx

---

<div class="post-metadata">

### Author: ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)
#### Post date: [March 25, 2022, 3:30pm UTC](https://community.sonatype.com/t/search-rest-api-sorting-by-version-doesnt-work-in-nexus-repo-3-25/4663/5 "2022-03-25T15:30:08Z")

</div>

I’m not sure what sort order this is… but you might try upgrading to get this fix:

[https://issues.sonatype.org/browse/NEXUS-30694](https://issues.sonatype.org/browse/NEXUS-30694)
