HabitRPG/habitrpg — pull request #2359 by colegleason (2014-01-11 10:10:32+00:00)
Title: autocomplete: sort usernames by indexOf then length

Fixes 1866.

Theres another odd bug (?) where autocomplete doesn't seem to filter properly until you've typed at least two characters. Not sure why.