put marks in correct order so one can style it

This commit is contained in:
Andrey Kalinichenko
2016-02-02 11:35:10 +01:00
parent 2cb0dbce6f
commit 613a2ae213
+1 -1
View File
@@ -8,7 +8,7 @@ const Marks = ({className, marks, included, upperBound, lowerBound, max, min}) =
const markWidth = unit * 0.9;
const range = max - min;
const elements = marksKeys.map(parseFloat).map((point) => {
const elements = marksKeys.map(parseFloat).sort((a, b) => a - b).map((point) => {
const isActived = (!included && point === upperBound) ||
(included && point <= upperBound && point >= lowerBound);
const markClassName = classNames({