view src/main/java/de/mpiwg/web/fullTextSearch/SortFullTextSearchFileByLastChanged.java @ 105:16a0796e3871 default tip

remove "console.log" from general.js
author Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
date Fri, 29 Sep 2017 16:18:02 +0200
parents dd2fcc5f5deb
children
line wrap: on
line source

package de.mpiwg.web.fullTextSearch;

import java.util.Comparator;

import de.mpiwg.gazetteer.bo.LGFullTextSearchFile;


public class SortFullTextSearchFileByLastChanged implements Comparator<LGFullTextSearchFile>{
	
	public int compare(LGFullTextSearchFile o1, LGFullTextSearchFile o2) {
		
		if(o1.getLastChangeDate() == null || o2.getLastChangeDate() == null){
			return o1.getId().compareTo(o2.getId());	
		}
		return o1.getLastChangeDate().compareTo(o2.getLastChangeDate());
	}
}