code: function getMatchingWishes(magicWord) {
    magicWord = (_isNullOrUndefined(magicWord)
      ? ''
      : `${magicWord}`).toLowerCase()
    const allWishIds = _getWishIdsInEnteredMagicWords(magicWord)
    const allWishes = getWish(allWishIds)
    const matchingWishes = _filterInContextWishes(allWishes)
  
    const otherMatchingWishIds = _sortWishesByMatchingPriority(
      _wishes,
      allWishIds,
      magicWord,
    )
    const otherWishes = getWish(otherMatchingWishIds)
    return matchingWishes.concat(otherWishes)
  }
docs: Uses the given magic word to return an intelligently sorted
  list of wishes which are in context and match the magic word
  (based on their own magic words and genie's enteredMagicWords)
  @param {?string} [magicWord=''] The magic word to match against
  @returns {Array.<wish>} wishes The matching wishes.
  @public