OK, maybe Endomondo just doesn't return the waypoints in chronological order because who knows?