protected static void sortSlaves(Vector<Connection> vConn, final SortType sort) {
		if(!sort.equals(SortType.NONE)) {
			Collections.sort(vConn, new Comparator<Connection>() {

				public int compare(Connection c1, Connection c2) {
					switch(sort) {
					case ADDRESS:
						return DTHelper.longArrCompare(c1.getConnValue(), c2.getConnValue());
					case NAME:
						int cmp = c1.getSlaveModule().getScd().getGroup().compareToIgnoreCase(c2.getSlaveModule().getScd().getGroup());
						if(cmp!=0) {
							return cmp;
						}
						/* Fallthrough and decide by label */
					case LABEL:
						return c1.getSlaveModule().getInstanceName().compareToIgnoreCase(c2.getSlaveModule().getInstanceName());
					default: return 0;
					}
				}
			});
		}
	}