title: How do I display the sorted value based on their properties
body: <p>How do I display the sorted value based on their properties. Example, I want to just display the likes, making back into an object.
  so i can use as a properties.</p>
  
  <p>Sorry for the Edit, this is the updated edit and working simulation.</p>
  
  <p>Any suggestion is very much appreciated.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var CatObj=[];
          var CatimgLikes=[1,4,6,10];
          var CatPostBy=["John","Anne","Simon","Sifu"];
          var CatURLArray=["url1","url2","url3","url4"];
          
              //console.log(CatObj[i]);
              //console.log(Cat);
          
  
          for(var i=0;i&lt;CatimgLikes.length;i++)
          {
  
              CatObj[i] = {Likes: CatimgLikes[i], postedByName: CatPostBy[i],imgURL: CatURLArray[i]};
              //console.log(instaObj[i]);
              //console.log(instaObj);
          
              //console.log(instaObj.Likes);
          }
  
  
          var byLikes = CatObj.slice(0);
          byLikes.sort(function(a,b) 
          {
              return a.Likes - b.Likes;
          });
          byLikes.sort();
          console.log(byLikes);</code></pre>
  </div>
  </div>
  </p>