Sort indexes alphabetically, like Rails does.