Skip to content

Instantly share code, notes, and snippets.

@markleusink
Created October 2, 2018 12:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save markleusink/0fefbc5e82b628d712a5d6b3a6dbf5cf to your computer and use it in GitHub Desktop.
String fakenamesPath = "fakenames2018.nsf";
// open the target database/ view (collection)
NotesDatabase db = new NotesDatabase(ExtLibUtil.getCurrentSession(), "", fakenamesPath);
NotesCollection collection = db.openCollectionByName("contacts");
//resort the collection (view) according to the selected column and direction
collection.resortView(this.sortColumn,
(this.sortAscending ? Direction.Ascending : Direction.Descending));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment