atom/autocomplete-snippets

Sort comparator does not work

jeancroy opened this issue · 1 comments

The comparator looks like this

ascendingPrefixComparator = (a, b) -> a.prefix - b.prefix

However those prefixes are strings and "ab" - "xy" results in NaN

You're right, we should use <; > etc.