Arthur & Emily,

Thanks for the feedback - changed to local #sort_docs(docs)