# Sorting a sparse axis array in JuMP

**URL:** https://discourse.julialang.org/t/sorting-a-sparse-axis-array-in-jump/57167
**Category:** Optimization (Mathematical)
**Tags:** question
**Created:** [March 15, 2021, 4:49am UTC](https://discourse.julialang.org/t/sorting-a-sparse-axis-array-in-jump/57167 "2021-03-15T04:49:30Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)
#### Post date: [March 15, 2021, 5:44am UTC](https://discourse.julialang.org/t/sorting-a-sparse-axis-array-in-jump/57167/2 "2021-03-15T05:44:42Z")

</div>

Hi there! Take a read of [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757). In particular, it’s easier to help if you provide a minimal working example and avoid using screenshots.

```nohighlight
y = [(k, value(Status[k]) for k in eachindex(Status)]
sort!(y, by = x -> x[2])

```

But it looks like you might want

```nohighlight
y = [k for k in eachindex(Status) if value(Status[k]) > 0.5]

```

---

_[View the full topic](https://discourse.julialang.org/t/sorting-a-sparse-axis-array-in-jump/57167)._
