Realtime visualisation fix

With realtime graph and mysql engine data ar not sorted sometime so
after 1 sample the line go back and forward.
Merge pull request #214 from eppak/master

Realtime visualisation fix