title: How to sort array according to number of occurrence of string?
body: <p>How to sort array according to number of occurrence of string</p>
  
  <p>Example :
   var array = ["Hello","Me","That","Me","Hello","Me","as","the"]</p>
  
  <p>and sorted array should be like this </p>
  
  <p>["Me","Hello","That","as","the"]</p>