fixed toolbox so that user circuits are alphabetically sorted, including the automatic adding of a circuit to the toolbox when saved; some logic for saving was wrongly in mainwindow, moved to toolbox; added alphabetical sort of circuit components before saving (in mainwindow) so that I/Os appear in the correct order when loading an abstracted circuit.