Re:Redesigning the country selector
by mynegation on Thursday November 10, 2011 @03:54PM
(#3221830)
This is a good suggestion - I believe prefix match should weigh more than partial infix match.
As for "too complicated" - I am not suggesting to extract GDP or population data in Javascript. But in static HTML on server side you may add additional "weight" attribute to each option, the way alternative spellings are added (look at the HTML source). And then you may manage these weights externally.
Re:Redesigning the country selector
by speleding on Friday November 11, 2011 @04:58AM
(#3224082)
I believe prefix match should weigh more than infix match... except for countries that start with an article (The Philippines, The Netherlands) where infix match works better. The Netherlands is now number 11 on the list after typing "Ne".
As for "too complicated" - I am not suggesting to extract GDP or population data in Javascript. But in static HTML on server side you may add additional "weight" attribute to each option, the way alternative spellings are added (look at the HTML source). And then you may manage these weights externally.