|
|
@@ -800,7 +800,7 @@ function View(calendar) {
|
|
|
var segmentCellLast = cellOffsetToCell(segmentCellOffsetLast);
|
|
|
|
|
|
// view might be RTL, so order by leftmost column
|
|
|
- var cols = [ segmentCellFirst.col, segmentCellLast.col ].sort(numericSort);
|
|
|
+ var cols = [ segmentCellFirst.col, segmentCellLast.col ].sort(compareNumbers);
|
|
|
|
|
|
// Determine if segment's first/last cell is the beginning/end of the date range.
|
|
|
// We need to compare "day offset" because "cell offsets" are often ambiguous and
|
|
|
@@ -860,10 +860,6 @@ function View(calendar) {
|
|
|
return range.end.diff(range.start, 'days') > 1;
|
|
|
}
|
|
|
|
|
|
- function numericSort(a, b) {
|
|
|
- return a-b;
|
|
|
- }
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|