From 98ebe0aa3fd1daba2be269c4a9e2356319edcd53 Mon Sep 17 00:00:00 2001 From: Luke Tsekouras Date: Tue, 13 Jan 2015 10:38:42 +1100 Subject: [PATCH] Added an option to sort by Full Name --- .../plugins/buildmonitor/order/ByFullName.java | 12 ++++++++++++ .../BuildMonitorView/configure-entries.jelly | 1 + 2 files changed, 13 insertions(+) create mode 100644 src/main/java/com/smartcodeltd/jenkinsci/plugins/buildmonitor/order/ByFullName.java diff --git a/src/main/java/com/smartcodeltd/jenkinsci/plugins/buildmonitor/order/ByFullName.java b/src/main/java/com/smartcodeltd/jenkinsci/plugins/buildmonitor/order/ByFullName.java new file mode 100644 index 000000000..2f1575bef --- /dev/null +++ b/src/main/java/com/smartcodeltd/jenkinsci/plugins/buildmonitor/order/ByFullName.java @@ -0,0 +1,12 @@ +package com.smartcodeltd.jenkinsci.plugins.buildmonitor.order; + +import hudson.model.AbstractProject; + +import java.util.Comparator; + +public class ByFullName implements Comparator { + @Override + public int compare(AbstractProject a, AbstractProject b) { + return a.getFullName().compareToIgnoreCase(b.getFullName()); + } +} diff --git a/src/main/resources/com/smartcodeltd/jenkinsci/plugins/buildmonitor/BuildMonitorView/configure-entries.jelly b/src/main/resources/com/smartcodeltd/jenkinsci/plugins/buildmonitor/BuildMonitorView/configure-entries.jelly index 3dad44830..655c71a57 100644 --- a/src/main/resources/com/smartcodeltd/jenkinsci/plugins/buildmonitor/BuildMonitorView/configure-entries.jelly +++ b/src/main/resources/com/smartcodeltd/jenkinsci/plugins/buildmonitor/BuildMonitorView/configure-entries.jelly @@ -56,6 +56,7 @@