title: How to add another array first to the lexicographically sorted array?
body: <p>I have lexicographically sorted an array. Is sorted like as:</p>
  
  <pre><code>const cityOfTheMoscow = ['Москва','Апрелевка', 'Балашиха',  'Видное',  'Воскресенск', 'Дзержинский', 'Дмитров', 'Долгопрудный', 'Домодедово',
        'Дубна', 'Егорьевск', 'Жуковский', 'Истра', 'Клин', 'Коломна', 'Королёв', 'Лыткарино', 'Люберцы', 'Мытищи', 'Наро-Фоминск',
        'Ногинск', 'Одинцово', 'Орехово-Зуево', 'Подольск', 'Протвино', 'Пушкино', 'Раменское', 'Реутов', 'Сергиев Посад', 'Серпухов',
        'Солнечногорск', 'Старая Купавна', 'Ступино', 'Фрязино', 'Химки', 'Чехов', 'Щелково', 'Электросталь']
  
  const result = response.data
            result.sort(function (a, b) {
              if (a.Name &gt; b.Name) { // 
                return 1;
              }
              if (a.Name &lt; b.Name) {
                return -1;
              }
              return 0;
            });
            self.resultZips = result
  </code></pre>
  
  <p>How would I add values ​from an array "cityOfTheMoscow" firstly, and then lexicographically? I tried to do like as: </p>
  
  <pre><code>result.unshift(...self.cityOfTheMoscow)
  </code></pre>
  
  <p>It works, but cityOfTheMoscow it's just array with one value, and result its object in which there is a "Name" property</p>
  
  <p><strong>update</strong>
  my result array looks something like this:</p>
  
  <pre><code>0: {
     Code: 0,
     CountryCode: 131,
     Region: 'Ростовская обл',
     Name: 'Ростов'
  },
  ...
  43: {
  Code: 412,
  CountryCode: 123,
  Region: 'Московская обл'
  Name: 'Москва'
  }
  </code></pre>
  
  <p>In this array there are already cities that are in the array of cityOfTheMoscow, but sort order is needed exactly such that the first values ​​in the array are those values ​​that are specified in the array cityOfTheMoscow</p>