JamieAppleseed/selectToAutocomplete — Issue #29: A blank search of more than 11 options displays out of order
Author: kopymark
Created: 2012-01-05 11:26:04+00:00
State: open

This also happens when you simply press down in the text field, and appears that it is caused by something within selectToAutocomplete. I tried the dropdown using simply jQuery UI's autocomplete and a blank search returns the list alphabetically as expected - so it must me something with this plugin.

I'm still digging into the issue but thought I'd post now and see if anyone else has come against this too. From some testing, this only comes into affect when there is more than 10 options in the select. Exactly 10 options displays fine, 11 options shows this issue though. From what I can see, the middle option goes to position 1 and the original second option goes to where the middle option came from.

For example, `1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11` would become `6, 1, 3, 4, 5, 2, 7, 8, 9, 10, 11`

You can see this on the demo on your site as well. For what it's worth, the test I did had no additional weighting set per item. Setting both `sort` and `relevancy-sorting` to `false` removed this issue, but setting either to `true` showed the issue.