Adding sorting of index names in the index selector