Sort:  

The final stage is on the beginning and on the end (the one with blue background).