Prefer matches at the beginning of a name and prefer matches with less overlap. Fixes issue #2
Take case-sensitivity into consideration when sorting matches