use the latest datapoint after sorting by timestamp
Merge pull request #5 from ijin/master

use the latest datapoint after sorting by timestamp