8 つの属性 (最初の属性に従って並べ替えられている) を持つデータ セットがあり、次の形式です (例として、タブで区切られています)。
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
ファイルが最初の属性に従ってソートされたので、最初の属性に基づいて日付に従って内部的にソートする必要があります。出力は次のようになります (データベースを使用したくありません。これは巨大なファイルです (2 GB) ) だから私は特別な python コードが必要かもしれないと思う (単純なコードでこれを行うことができるかどうかわからない)
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
どんな返信でも大歓迎です。他にご不明な点がございましたら、お問い合わせください。