Changed searching mechanism to support NSStringCompareOptions
Sorting the array while adding it to possible list of completion items.
Merge branch 'develop'