I am using the search.get_indexes() function as documented here, to get the list of search indexes that I have stored. From a few test cases, it seems that the returned list is sorted alphabetically on the Index name. Is it known or documented that this behaviour is guaranteed? I might have missed something, but I couldn't find it explicitly mentioned in the docs. Thanks in advance.
If the sort order is not specified in the documentation, it is not guaranteed, and the implementation may change going forward. I suggest that you sort them in your code - the performance penalty is negligible, especially if the indexes are already sorted using the same criteria that you apply.