Fixes issue with ordering numbered fields when using Histogram Aggregation

Closes #2408.

The issue was that when using a Histogram aggregation, x axis values were not ordered by number. The issue was caused because we were not checking for ordered values, just date values. So ordered values were being ordered by their indexed position instead of their number or ordered value position.