title: What is easy way to convert object in array Angular JS?
body: <p>My application was built on Angular JS and has a lot AJAX requests on server.
  For example, in PHP I format output <strong>array</strong> like as:</p>
  
  <pre><code>$dialog[$userId] = array(
     'time' =&gt; $key,
     'message' =&gt; $message['message'],
     'name_user'  =&gt; $info['name']
  );
  
  echo json_encode($dialog); die();
  </code></pre>
  
  <p>But in Angular JS I get not array but object:</p>
  
  <blockquote>
    <p>549: Objectid_user: "549"message: "Hello"name_user: "Ali
    Akhmedov"time: 1432070505</p>
  </blockquote>
  
  <p>Problem that if use <code>ng-repeat</code> then does not work sorting for object.
  Why in PHP I set array but on client get object?</p>
  
  <p>What easy way to convert object to array? Because I have a lot objects on page from AJAX.</p>