@Override
		public void run(TaskMonitor monitor) {
			int txId = -1;
			boolean success = false;
			try {
				txId = currentProgram.startTransaction(getName());
				doSort(module, comparator, monitor);
				success = true;
			}
			catch (CancelledException ce) {
				// don't care
			}
			catch (Throwable t) {
				Msg.showError(this, null, "Error", "Module Sort Failed", t);
			}
			finally {
				currentProgram.endTransaction(txId, success);
			}
		}
Plugin to sort Modules and Fragments within a selected Module.
Child Module folders are always name-sorted and placed
above child Fragments.  When sorting on address, the minimum
address for each fragment is used, while empty fragments are name-sorted
and placed at the bottom.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/module/ModuleSortPlugin.java