The solar system between order and chaos