fix local sorting (`formatByPattern.collationCompare`) mostly for Dates
- for Dates: takes into account what Date's must be compared using
Date.getTime()
- empty values (null, undefined) is always less when any over
For end user this mean valid sorting of cached data stores.
Edited by Pavlo Mashliakovskiy