Fixed output sorting.
With a bit of a hack, see Components::ordKey().
Added minimized setting implementation.
Fixed new/delete bugs in MainWindow.