I have a data set with 8 attributes (which is sorted according to the first attribute) and is of the following format (Just an example, it is tab separated)
AX 0123 December 20, 2010 1 2 8.0 hello this
AX 2313 April 19, 2009 2 3 4.0 hi there
AX 4532 December 19, 2010 6 2 8.0 nice tie
AX 1244 January 10, 2011 3 4 8.0 king tale
BX 0214 September 10, 2009 2 3 9.0 this king
BX 0114 February 9, 2003 4 9 4.0 his brought
BX 3214 September 1, 2006 1 3 3.0 is great
MG 980 April 20, 2007 2 4 7.1 not available
MG 246 May 8, 2005 5 1 2.1 make goat
Now, that the file is sorted according first attribute, now i need to sort internally according to date based on first attribute, the output should be like this (I don't want to use the database, this is a huge file (2 GB) so I think a special python code might be required (Not sure if one can do this with a simple code)
AX 2313 April 19, 2009 2 3 4.0 hi there
AX 4532 December 19, 2010 6 2 8.0 nice tie
AX 0123 December 20, 2010 1 2 8.0 hello this
AX 1244 January 10, 2011 3 4 8.0 king tale
BX 0114 February 9, 2003 4 9 4.0 his brought
BX 3214 September 1, 2006 1 3 3.0 is great
BX 0214 September 10, 2009 2 3 9.0 this king
MG 246 May 8, 2005 5 1 2.1 make goat
MG 980 April 20, 2007 2 4 7.1 not available
Any replies are greatly appreciated. Let me know if you have any other questions.