I am using the gotoDefinition feature in my javascript project and often there are multiple potential matches. In almost all cases, if there is a match in the same file, it is the one I am looking for.
It would be great if any gotoDefinition target from the same file could show up at the top of the list. Maybe there are other ways to sort the list by relevance instead of alphabetical.