fix($filter): $orderBy filter with dates when sorting multiple fields


extend compare method to use Date.valueOf() when comparing dates

closes #6675