Made a fix so that items are always in the same order as in the config file.