title: Sorting 2d object array Java
body: <p>I have an object array with customers. Every customer has max number of wishes.
  I have:</p>
  
  <pre><code>Customer[] customer  = new Customer[numOfCustomers]
  C_wishes [][] w = new C_wishes[numOfCustomers] [maxWishes]
  </code></pre>
  
  <p>I sorted the out the customers with bubble sort but I can't do it the same with 2d array. Basically i would like to do something like this </p>
  
  <pre><code>[[obj7,o8, o9],[o1,o2,o3],[o4,o5,o6]] =&gt; [[obj1,o2, o3],[o4,o5,o6],[o7,o8,o9]]
  </code></pre>
  
  <p>but at some point the wishes don't align with customers.
  I'll post the code as soon as I can.</p>