api_autocomplete() should have a secondary sort
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #1400774. -->
Reported by: [drumm](https://www.drupal.org/user/3064)
>>>
<p>Autocomplete results are only sorted by length. On api.drupal.org, this is inconsistent, so the JSON cache thinks it needs to be rewritten more than necessary. That means there are more chances for the suggestions to be missing and they will be in different order.</p>
issue