fix ($orderBy): fix orderBy filter to sort Date objects correctly

Re-order the conditional statements in compare method to compare Date objects
correctly. Since Date object does not equal Date object even the dates are the
same, so it can be safely assumed than one is not less than nor greater than
the other, it is the same as the other.

test
http://jsfiddle.net/lvo811/hkbY3/