Skip to content

Commit

Permalink
Fix order of AutoFilter children elements
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmaware committed Nov 10, 2021
1 parent c71d44c commit 9cf0c83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OpenXmlFormats/Spreadsheet/AutoFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ internal void Write(StreamWriter sw, string nodeName)
sw.Write(string.Format("<{0}", nodeName));
XmlHelper.WriteAttribute(sw, "ref", this.@ref);
sw.Write(">");
if (this.sortState != null)
this.sortState.Write(sw, "sortState");
if (this.extLst != null)
this.extLst.Write(sw, "extLst");
if (this.filterColumn != null)
{
foreach (CT_FilterColumn x in this.filterColumn)
{
x.Write(sw, "filterColumn");
}
}
if (this.sortState != null)
this.sortState.Write(sw, "sortState");
if (this.extLst != null)
this.extLst.Write(sw, "extLst");
sw.Write(string.Format("</{0}>", nodeName));
}

Expand Down

0 comments on commit 9cf0c83

Please sign in to comment.