It's should be possible to arrange functions and subs in script library alphabetically or drag an drop. If script library contains 20-30 functions , it's hard to manage and find.
A few years a go I created a tool to do a sort like this on a scriptlibrary. Before you ask of a copy, I recently found a problem with, so that it does not run at the moment. But I am happy to fix this and make it available. I did run in the past, maybe it has to do with the Notes verions I am using.
By the way, I copied the original idea for the tool from the Sandbox.
Paul, I assume it can be done using NotesAPI but not everyone having good hand on it. There are lot many in build functionality can be changed using API. It would be great if IBM provides tab in script library called "Notes API" like java or javascript. It could provide skeleton to start your API and all the functions/methods can be seen using dot notation like LS.