# Any sorting function in Julia that is as fast as Matlab's maxk?

**URL:** <https://discourse.julialang.org/t/any-sorting-function-in-julia-that-is-as-fast-as-matlabs-maxk/14105>\
**Category:** Performance\
**Tags:** performance, matlab, sort, sortperm\
**Created:** [August 27, 2018, 2:24am UTC](https://discourse.julialang.org/t/any-sorting-function-in-julia-that-is-as-fast-as-matlabs-maxk/14105 "2018-08-27T02:24:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [August 27, 2018, 2:49pm UTC](https://discourse.julialang.org/t/any-sorting-function-in-julia-that-is-as-fast-as-matlabs-maxk/14105/3 "2018-08-27T14:49:55Z")

</div>

Please do not post the same topic in two different threads. You’ve already opened this exact issue in your other thread here: [What is Julia's maxk(Matlab) that returns the indice of top K largest values? - #11 by platawiec](https://discourse.julialang.org/t/what-is-julias-maxk-matlab-that-returns-the-indice-of-top-k-largest-values/14100/11)

Duplicating a topic makes it harder for us to help you: people end up duplicating each other’s responses and the correct answer gets divided up into multiple places.

---

_[View the full topic](https://discourse.julialang.org/t/any-sorting-function-in-julia-that-is-as-fast-as-matlabs-maxk/14105)._
