package com.vexus2.jenkins.chatwork.jenkinschatworkplugin.api;

import org.apache.commons.lang.StringUtils;

import java.util.Comparator;

public class RoomComparator implements Comparator<Room> {
  @Override
  public int compare(Room room1, Room room2) {
    if(!StringUtils.equals(room1.type, room2.type)){
      return room1.type.compareTo(room2.type);
    }

    return room1.name.compareTo(room2.name);
  }
}

@@ -249,16 +249,36 @@
 oom2) %7B%0A
+    // 1st sort key%0A
     if(!
@@ -376,16 +376,36 @@
 %0A    %7D%0A%0A
+    // 2nd sort key%0A
     retu

Add comment