public static void sort (Long[] array){
  System.out.println("Sorting sorted[] ...");
  for(int i = 0; i <array.length-1; i++)
   for(int j = i+1; j<array.length; j++)
    if(array[i] > array[j])
    {
     Long t = array[i];
     array[i] = array[j];
     array[j] = t;
    }
  
 }