Quick alphabetic sorting of Vanderbilt email addresses
✓ Published0🌍 Public
CCliffordAnderson
Last edited Sep 14, 2017
Created on Sep 14, 2017
This example demonstrates a straightforward method for alphabetically sorting a list of Vanderbilt email addresses extracted from a Markdown file. The code loads the email addresses using `fn:unparsed-text-lines`, then performs a case-sensitive sort based on a specific portion of the address. It applies a regular expression via `fn:replace` to isolate the username segment after the first period, and orders the results with an `order by` clause in XQuery 3.1. The output is the sorted list of emails, showing the sorting logic directly in the query.
AI-generated description