Skip to content

Instantly share code, notes, and snippets.

@nathandarnell
Last active June 21, 2018 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathandarnell/0c7cac5e628a43b126f96d7c64970cf9 to your computer and use it in GitHub Desktop.
Save nathandarnell/0c7cac5e628a43b126f96d7c64970cf9 to your computer and use it in GitHub Desktop.
Sorts the Polycom directory file and is kept in /usr/local/sbin
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@*|node()">
<xsl:copy><xsl:apply-templates select="@* | node()"/></xsl:copy>
</xsl:template>
<xsl:template match="item_list">
<xsl:copy>
<xsl:apply-templates select="@*|node()">
<xsl:sort select="ln"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment