src/index.js
function orderCoords(coords){
  if (config.coordinateOrder){
    return coords;
  }
  if (coords[2]){
    return [coords[1], coords[0], coords[2]];
  }
  return coords.reverse();
}
function orderCoords(coords){
  if (config.coordinateOrder){
    return coords;
  }
  if (coords[2]){
    return [coords[1], coords[0], coords[2]];
  }
  return coords.reverse();
}
function orderCoords ( coords ) { if ( config . coordinateOrder ) { return coords ; } if ( coords [ 2 ] ) { return [ coords [ 1 ] , coords [ 0 ] , coords [ 2 ] ] ; } return coords . reverse ( ) ; }
reorder coordinates to lat, lng iff config.coordinateOrder is false.
@param  {Number[]} coords An array of coordinates,  [lng, lat, ...etc]
@return {Number[]} An array of coordinates in the correct order.
reorder coordinates to lat lng iff config . coordinateOrder is false .