# Sorting float values in widgets

**URL:** <https://community.graylog.org/t/sorting-float-values-in-widgets/37200>\
**Category:** Graylog Central (peer support)\
**Tags:** dashboards\
**Created:** [April 20, 2026, 7:24pm UTC](https://community.graylog.org/t/sorting-float-values-in-widgets/37200 "2026-04-20T19:24:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmurdock](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mmurdock](https://community.graylog.org/u/mmurdock)\
**Post date:** [April 20, 2026, 7:24pm UTC](https://community.graylog.org/t/sorting-float-values-in-widgets/37200/1 "2026-04-20T19:24:35Z")

</div>

I am running Graylog 7.0.6 + Opensearch 2.19.5 + MongoDB 7.0.31 on Ubuntu 22.04.5 LTS. I have defined a field as a Number (Floating Point) in the “configure index field types” section, and have rotated the index. I am searching events only for dates/times _after_ that configuration and index rotation, and am attempting to sort the values of that field, but they appear to be treated as strings, rather than floating point values.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/7/8/78047c35f9beb29d533305b6fc1a9f0f4cc91112.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/f/5/f50469a111564af181950ba91665b195be1c4d63.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/f/b/fbe398712295646c2090b8b29d7148d80dbe55e1.png)

Is it expected that Graylog 7 cannot sort floating point values in ascending/descending order?

Thank you!

---

<div class="post-metadata">

**Author:** ![Wine\_Merchant](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/wine_merchant/32/14596_2.png) [@Wine\_Merchant](https://community.graylog.org/u/Wine_Merchant)\
**Post date:** [April 21, 2026, 7:49am UTC](https://community.graylog.org/t/sorting-float-values-in-widgets/37200/2 "2026-04-21T07:49:07Z")

</div>

Hello @mmurdock,

I’m not able to replicate this same behaviour. Is the field for sure a float?

 ![Screenshot 2026-04-21 at 08.46.17](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/f/a/fac0b7517196b21ebebc6ad6f368c01015158598.png)  
 ![Screenshot 2026-04-21 at 08.43.25](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/6/2/6208955d742014b01427736dd30417e6646fc8f4.png)

---

<div class="post-metadata">

**Author:** ![mmurdock](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mmurdock](https://community.graylog.org/u/mmurdock)\
**Post date:** [April 21, 2026, 1:40pm UTC](https://community.graylog.org/t/sorting-float-values-in-widgets/37200/3 "2026-04-21T13:40:21Z")

</div>

It appears it is a “double” - should this make a difference for sorting?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/2/0/20d9c8dc92207202cc9136e4dfabae68acc73a5e.png)

---

<div class="post-metadata">

**Author:** ![Wine\_Merchant](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/wine_merchant/32/14596_2.png) [@Wine\_Merchant](https://community.graylog.org/u/Wine_Merchant)\
**Post date:** [April 22, 2026, 9:46am UTC](https://community.graylog.org/t/sorting-float-values-in-widgets/37200/4 "2026-04-22T09:46:49Z")

</div>

Great question and I’m not sure, I could force a float or long by altering the type of a field from within the UI buy double is not accounted for. What is interesting is that if you have applied a mapping as type float, how are you now getting a double?

At the least there could be a compound type issue where index to index the type of a given field changes which can lead to issues when aggregating.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [May 6, 2026, 9:47am UTC](https://community.graylog.org/t/sorting-float-values-in-widgets/37200/5 "2026-05-06T09:47:07Z")

</div>

Closed on May 6, 2026, 9:47am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
