Using sortByMaxima with a series that only has NaN values causes it to end up at the top of the series list which is different from graphite-web.
In graphite-web when you use a sortBy function all aggregated values that are equal to NaN are set to -Inf. Link to code.
This PR adds the same behavior.
Using sortByMaxima with a series that only has NaN values causes it to end up at the top of the series list which is different from graphite-web. In graphite-web when you use a sortBy function all aggregated values that are equal to NaN are set to -Inf. Link to code. This PR adds the same behavior.