Fix toolbar items sort in Python 3

In Python 3 the use of SortedDict is required to keep toolbars dictionary order consistent