make SeriesRef.compareTo more consistent