/ Given a table having orderid and timestamps (one or two of them / per orderid), want to calculate the difference in the timestamps / for each order id and sort in descending order by the difference. order: `a`b`a`c`c`b`d; time: 09:03:06.000 09:03:23.000 09:04:01.000 09:05:01.000 09:06:01.000 09:07:01.000 09:03:23.010; latency:([]order; time); show latency ravi:{[arr] :max(arr) - min(arr); } highlats: select mylat: ravi[time] by order from latency show highlats (`mylat xdesc `highlats) show highlats save `:highlats.csv; / to write a csv file save `:highlats / save in binary. More compact