Unorderness of a range object won't affect slider

Turn range into array, sort it by value and use then.
This makes sure that all 4 arrays are naturally ordered the same way.