# Heatmap X-Axis - Simple number sorting issue

**URL:** <https://discuss.elastic.co/t/heatmap-x-axis-simple-number-sorting-issue/165722>\
**Category:** Kibana\
**Created:** [January 25, 2019, 8:38am UTC](https://discuss.elastic.co/t/heatmap-x-axis-simple-number-sorting-issue/165722 "2019-01-25T08:38:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chobolt](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@chobolt](https://discuss.elastic.co/u/chobolt)\
**Post date:** [January 25, 2019, 8:38am UTC](https://discuss.elastic.co/t/heatmap-x-axis-simple-number-sorting-issue/165722/1 "2019-01-25T08:38:04Z")

</div>

Hi,  
I'm looking at the example populated data/graphs, and in the Heat map, I can't figure out why the X-axis ("Hour of day") sorting is not working, as shown on attached file.  
For information this field is a script-generated value using : doc['timestamp'].value.getHourOfDay()  
Any ideas ?

 ![kibana-sorting-issue](https://us1.discourse-cdn.com/elastic/original/3X/9/5/954c627334b736f95e188359994fd386421e348b.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 22, 2019, 8:38am UTC](https://discuss.elastic.co/t/heatmap-x-axis-simple-number-sorting-issue/165722/2 "2019-02-22T08:38:07Z")

</div>

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