Hi there,
in my page I have a field with dates as milliseconds since epoch. As some of these dates took time before 1970-01-01, they have negative milliseconds values. When I try to sort a collection by this field, I get incorrect results.
$sorted = $my_dates->sortBy('ms');
// results in something like
// -348667200000
// -452260800000
// -1084968000000
// -1283601600000
// -1286020800000
// 337777200000
// 459774000000
// 1402657200000
Looks like the negative numbers are sorted by increasing absolute value, which is incorrect. Is this a bug? What can I do to work around this?
Thanks!