<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":kmath-core:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><divclass="block"><divclass="block"><spanclass="token annotation builtin">@</span><ahref="../../kmath-memory/space.kscience.kmath/-unstable-k-math-a-p-i/index.html"><spanclass="token annotation builtin">UnstableKMathAPI</span></a></div></div><spanclass="token keyword"></span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="indices-sorted.html">V</a><spanclass="token operator"> : </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-comparable/index.html">Comparable</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="indices-sorted.html">V</a><spanclass="token operator">></span><spanclass="token operator">></span><ahref="../space.kscience.kmath.structures/-buffer/index.html">Buffer</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="indices-sorted.html">V</a><spanclass="token operator">></span><spanclass="token punctuation">.</span><ahref="indices-sorted.html"><spanclass="token function">indicesSorted</span></a><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html">IntArray</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-core/src/commonMain/kotlin/space/kscience/kmath/misc/sorting.kt#L20">source</a>)</span></span></div><pclass="paragraph">Return a new array filled with buffer indices. Indices order is defined by sorting associated buffer value. This feature allows sorting buffer values without reordering its content.</p><spanclass="kdoc-tag"><h4class="">Return</h4><pclass="paragraph">Buffer indices, sorted by associated value.</p></span></div></div>