public static void main(String[] args)
	{
		String[] a = new String[20];
		
		try
		{
			BufferedReader reader = new BufferedReader(new FileReader("G:\\test.txt"));
			String line = reader.readLine();
			int i = 0;
			while(line != null && i < 20)
			{
				a[i] = line;
				line = reader.readLine();
				i++;
			}
			reader.close();
			a = sort(a, 10, 2);
			System.out.println("After Sorting : ");
			for(i = 0; i < 20; i++)
				System.out.println("  " + a[i]);
		
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
	}