Added ability to change index order in the config