Sonata works faster than Ambien, but it also leaves the body faster. Therefore it might not help you stay asleep through the night.

https://recoverypartnernetwork.com/drug/sleeping-pills/sonata-abuse-and-treatment