From 801e5100cff92f8900e888c52ec7d8132d0c79d4 Mon Sep 17 00:00:00 2001 From: Richard Cordovano Date: Thu, 19 Feb 2015 16:07:21 -0500 Subject: [PATCH] Commit Sidhesh's tag sorting for context menu --- Core/src/org/sleuthkit/autopsy/actions/AddTagAction.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/src/org/sleuthkit/autopsy/actions/AddTagAction.java b/Core/src/org/sleuthkit/autopsy/actions/AddTagAction.java index e761e0fced..b051fa2238 100755 --- a/Core/src/org/sleuthkit/autopsy/actions/AddTagAction.java +++ b/Core/src/org/sleuthkit/autopsy/actions/AddTagAction.java @@ -20,6 +20,7 @@ package org.sleuthkit.autopsy.actions; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; +import java.util.Collections; import java.util.List; import java.util.logging.Level; import javax.swing.JMenu; @@ -81,6 +82,7 @@ abstract class AddTagAction extends TagAction implements Presenter.Popup { List tagNames = null; try { tagNames = tagsManager.getAllTagNames(); + Collections.sort(tagNames); } catch (TskCoreException ex) { Logger.getLogger(TagsManager.class.getName()).log(Level.SEVERE, "Failed to get tag names", ex); //NON-NLS