Realtime visualisation fix

With realtime graph and mysql engine data ar not sorted sometime so
after 1 sample the line go back and forward.