Ok.
I have changed the order with respect to hh:mm:ss, by changing the below lines and got this output:
Is there anyway to change both date (yyyy:mm:dd) and time (hh:mm:ss) by arranging it sequentially ?
1 2 3
|
if ( a.activity != b.activity ) return a.activity < b.activity;
return Event( a.date ) < Event( b.date );
|
AFTER RUN:
order_number activity timestamp
990112678909872002235216 check stock 2014-03-26 10:32:46.000
990112678909872002235216 handle payment 2014-03-26 10:32:46.000
990112678909871002435208 handle payment 2014-03-26 10:32:46.000
990112678909873001235436 register order 2014-01-26 11:42:56.000
990112678909872001235426 register order 2014-02-26 10:32:46.000
990112678909876300123546 register order 2014-03-22 10:31:56.000
990112678909875001235486 register order 2014-03-26 10:25:56.000
990112678909876001235486 register order 2014-03-26 12:26:16.000
990112678909872002235216 ship order 2014-01-26 11:22:46.000