Code: Select all
SIBLEY, Joseph Charles Jr. M (1845 - 1911) 24 Oct 1861 Civil War(18611024) US Army Musician Company G 3rd MN Infantry
1862 Civil War(18620000) US Army 1st MN Cavalry
Civil War('') Courts Martial
Civil War ('') War Records
2 Sep 1865 Civil War(18650902) mustered out
1 Jan 1864 Civil War(18640101) US Army Veteran Volunteer Company G 3rd MN Infantry
aft 1865 (18651231) Member of the Grand Army of the Republic
this is a chunk of my report, the characters in parenthesis are one of the fields it is sorted on(verified these are the fields)
table.sort(GEDRCD, function(a, b) return a.WAR < b.WAR end)
table.sort(GEDRCD, function(a, b) return a.SDFSVC < b.SDFSVC end)
table.sort(GEDRCD, function(a, b) return a.NAME < b.NAME end)
GEDRCD contains all my fields from the various mat functions)
SDFSVC is built using *XTYPE and *XDATE1 and a lot of code, and I mean a lot, some from the internet. as I said SDFSVC in parens is verified. d
how can I sort date WITHIN name?