title: sort and pattern match an json
body: <p>Am having a json like below,</p>
  
  <pre><code>[
      {
          "id": "1",
          "freq": "1",
          "value": "Tiruchengode",
          "label": "Tiruchengode"
      },
      {
          "id": "2",
          "freq": "1",
          "value": "Coimbatore",
          "label": "Coimbatore"
      },
      {
          "id": "3",
          "freq": "1",
          "value": "Erode",
          "label": "Erode"
      },
      {
          "id": "4",
          "freq": "1",
          "value": "Madurai",
          "label": "Madurai"
      },
      {
          "id": "5",
          "freq": "1",
          "value": "Salem",
          "label": "Salem"
      },
      {
          "id": "6",
          "freq": "1",
          "value": "Tiruchirappalli",
          "label": "Tiruchirappalli"
      },
      {
          "id": "7",
          "freq": "1",
          "value": "Tirunelveli",
          "label": "Tirunelveli"
      }
  ]
  </code></pre>
  
  <p>I need to pattern match it with label item in this json (ie), If I type <strong>tiru</strong>, then it has to result label items having <strong>tiru</strong> substrings in it.If its a single item array I know how to pattern match and sort it. Here am completely unaware that, how to pattern match using label item in the array. Is it possible to?. I need to do with Pure javascript, any help guys?</p>