Locator: Better sorting of command entries.

For the input "git am" is "git amend" a better match than "git blame".

Change-Id: Id0cf91b62dac8b6c54f6de7c0698a375765e936d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>