I think that may be better.
Since JavaScript doesn't preserve pre-sort order, I think additional comparisons are needed to maintain the alpha sort. While we can use a trailing "\b" to match word ending (makes exact word be prioritized), using something like a quote character may be "easier" (replace " with \b in the regex) to allow exact match searches. Thanks, Brian > > On Aug 27, 2017 at 3:42 PM, <Monte Goulding via use-livecode > (mailto:use-livecode@lists.runrev.com)> wrote: > > > > > On 28 Aug 2017, at 4:08 am, J. Landman Gay via use-livecode wrote: > > >> I've been working on the dictionary and would like to improve it even > more. > > Your name will be praised. :) Brian’s name is praised already! > He’s certainly pitching in! As far as the dictionary goes perhaps the search > term needs to prioritise if found anywhere in the name of an entry? Cheers > Monte _______________________________________________ use-livecode mailing > list use-livecode@lists.runrev.com Please visit this url to subscribe, > unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode