How can the following query's results be sorted by index name?
curl "localhost:9200/_aliases?pretty"
I think that the best way to do this would be via the console. Something like this:
$ curl --silent 'http://path.to.cluster:9200/_cat/indices' | cut -d ' ' -f2 | sort