<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np

a = np.array([-9.93686340e+02, -9.85949280e+02, -9.67635925e+02, -9.39872864e+02,
              -8.98984009e+02, -8.41368530e+02, -7.81853699e+02, -6.92064392e+02,
              -6.12045349e+02, -5.30710449e+02, -4.54482269e+02, -3.71461731e+02,
              -3.14179626e+02, -2.76059692e+02, -2.41759018e+02, -2.20870255e+02,
              -1.92301758e+02, -1.66814026e+02, -1.44157349e+02, -1.30507690e+02,
              -1.12051003e+02, -9.58245697e+01, -8.61438751e+01, -7.31186905e+01,
              -6.15607414e+01, -4.49081726e+01, -3.38174362e+01, -2.26543159e+01,
              -1.42377014e+01, -8.23967838e+00, -4.27592516e+00, -1.91338563e+00,
              -6.95205748e-01, -1.86089307e-01, -0.00000000e+00,
              -9.93686328e+02, -7.39944519e+02])

print(np.argsort(a))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>

<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">-</span><span class="pl-c1">9.93686340e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">9.85949280e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">9.67635925e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">9.39872864e+02</span>,
              <span class="pl-c1">-</span><span class="pl-c1">8.98984009e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">8.41368530e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">7.81853699e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">6.92064392e+02</span>,
              <span class="pl-c1">-</span><span class="pl-c1">6.12045349e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">5.30710449e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">4.54482269e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.71461731e+02</span>,
              <span class="pl-c1">-</span><span class="pl-c1">3.14179626e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.76059692e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.41759018e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.20870255e+02</span>,
              <span class="pl-c1">-</span><span class="pl-c1">1.92301758e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.66814026e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.44157349e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.30507690e+02</span>,
              <span class="pl-c1">-</span><span class="pl-c1">1.12051003e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">9.58245697e+01</span>, <span class="pl-c1">-</span><span class="pl-c1">8.61438751e+01</span>, <span class="pl-c1">-</span><span class="pl-c1">7.31186905e+01</span>,
              <span class="pl-c1">-</span><span class="pl-c1">6.15607414e+01</span>, <span class="pl-c1">-</span><span class="pl-c1">4.49081726e+01</span>, <span class="pl-c1">-</span><span class="pl-c1">3.38174362e+01</span>, <span class="pl-c1">-</span><span class="pl-c1">2.26543159e+01</span>,
              <span class="pl-c1">-</span><span class="pl-c1">1.42377014e+01</span>, <span class="pl-c1">-</span><span class="pl-c1">8.23967838e+00</span>, <span class="pl-c1">-</span><span class="pl-c1">4.27592516e+00</span>, <span class="pl-c1">-</span><span class="pl-c1">1.91338563e+00</span>,
              <span class="pl-c1">-</span><span class="pl-c1">6.95205748e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.86089307e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">0.00000000e+00</span>,
              <span class="pl-c1">-</span><span class="pl-c1">9.93686328e+02</span>, <span class="pl-c1">-</span><span class="pl-c1">7.39944519e+02</span>])

<span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">argsort</span>(<span class="pl-s1">a</span>))</pre></div>
<h3 dir="auto">Error message:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ 0 35  1  2  3  4  5  6 36  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21
 22 23 24 25 26 27 28 29 30 31 32 33 34]"><pre class="notranslate"><code class="notranslate">[ 0 35  1  2  3  4  5  6 36  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21
 22 23 24 25 26 27 28 29 30 31 32 33 34]
</code></pre></div>
<p dir="auto">The result should be:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ 0  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21
 22 24 25 26 27 28 29 30 31 32 1 23]"><pre class="notranslate"><code class="notranslate">[ 0  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21
 22 24 25 26 27 28 29 30 31 32 1 23]
</code></pre></div>
<p dir="auto">Note that a[:-2] is ascending (<code class="notranslate">print(np.argsort(a[:-2]))</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ 0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
 24 25 26 27 28 29 30 31 32 33 34]"><pre class="notranslate"><code class="notranslate">[ 0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
 24 25 26 27 28 29 30 31 32 33 34]
</code></pre></div>
<p dir="auto">The last two elements cause the bug above.</p>
<h3 dir="auto">NumPy/Python version information:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.19.1 3.8.5 | packaged by conda-forge | (default, Jul 24 2020, 01:25:15) 
[GCC 7.5.0]"><pre class="notranslate"><code class="notranslate">1.19.1 3.8.5 | packaged by conda-forge | (default, Jul 24 2020, 01:25:15) 
[GCC 7.5.0]
</code></pre></div>
<h3 dir="auto">Proposed new feature or change:</h3>
<h3 dir="auto">Requirement</h3>
<ul dir="auto">
<li>Today, <code class="notranslate">show_config</code> generated via meson does not include compiler flags</li>
</ul>
<h3 dir="auto">Changes</h3>
<ul dir="auto">
<li>Find a way to parse the compiler flags provided either via env vars like <code class="notranslate">CFLAGS</code> or via <code class="notranslate">config_settings</code> and include in <code class="notranslate">show_config</code></li>
</ul>
<p dir="auto"><em>Note</em>: Additionally this needs to be ported to SciPy</p>