add order by time in wms to majke sure trajectory correctly displayed