Last ten modified documents

Can you think of any way I can “on the fly” get the last ten modified documents of a database in LotusScript?

Subject: Last ten modified documents

Create a view sorted by lastmodified time and use NotesDocumentCollection class to get the first 10 documents.