Converted getLocalData and getRemoteData in PhoneGap plugin to return
the date in seconds.
Fixed bug in sorting data when querying local sensor data storage