fleetmap-reports 1.0.455 → 1.0.456

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "1.0.455",
3
+ "version": "1.0.456",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -252,6 +252,7 @@ function processDrivers (from, to, drivers, data, userData) {
252
252
  drivers.forEach(d => {
253
253
  const route = data.route.filter(p => p.attributes.driverUniqueId === d.uniqueId)
254
254
  const trips = data.trips.filter(t => t.driverUniqueId === d.uniqueId)
255
+ trips.sort((a, b) => new Date(a.startTime).getTime() - new Date(b.startTime).getTime())
255
256
  if (trips.length > 0) {
256
257
  const driverData = {
257
258
  driver: d,