# Sort values on the y-axis from smallest to largest

**URL:** <https://discourse.julialang.org/t/sort-values-on-the-y-axis-from-smallest-to-largest/127802>\
**Category:** New to Julia\
**Tags:** question, plotting\
**Created:** [April 7, 2025, 2:51pm UTC](https://discourse.julialang.org/t/sort-values-on-the-y-axis-from-smallest-to-largest/127802 "2025-04-07T14:51:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![eldee](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@eldee](https://discourse.julialang.org/u/eldee)\
**Post date:** [April 7, 2025, 4:36pm UTC](https://discourse.julialang.org/t/sort-values-on-the-y-axis-from-smallest-to-largest/127802/2 "2025-04-07T16:36:32Z")

</div>

Hi, and welcome to the Julia community!

* * *

Note that you can enclose your code in triple backticks (```), for proper formatting. See also [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757).

* * *

Considering the x-axis uses a decimal point and the y-axis a decimal comma, my guess is your `df[:, 5]` is parsed as a `Vector{String}`. If so, you could convert it to a `Vector{Float64}` using `parse.(Float64, replace.(df[:, 5], ',' => "."))`, which will first replace every (decimal) comma by a (decimal) point, and then convert all these `String`s to `Float64`.

Once your y-values are floats, the y-axis should behave as you’d expect.

---

_[View the full topic](https://discourse.julialang.org/t/sort-values-on-the-y-axis-from-smallest-to-largest/127802)._
