public static void order()
    {
    	int[] array={3,2,4,1,5,7,6,8,9};
    	int length=array.length;
    	
    	for (int i = 0; i < length-1; i++) 
    	{
    		for(int j=0;j<i;j++)
    		{
    			if(array[j+1]<array[j])
    			{
    				int temp=array[j];
    				array[j]=array[j+1];
    				array[j+1]=temp;
    			}
    		}
		}
    	
    	for (int i = 0; i < array.length; i++) {
    		System.out.print(array[i]);
		}
    }