Added sorting of the closed tabs before rendering.

This way the sorting will work right away without any update method.  This can also be a foundation for user-selectable sorting methods later on.