comparison src/main/java/de/mpiwg/web/topicList/SortByTopicId.java @ 60:90d5e86c157d

new: auto refresh page when there's new version saved from Ext-Interface
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Wed, 25 May 2016 11:11:32 +0200
parents
children
comparison
equal deleted inserted replaced
59:bc0219c2600b 60:90d5e86c157d
1 package de.mpiwg.web.topicList;
2
3 import java.util.Comparator;
4
5 import de.mpiwg.gazetteer.bo.LGTopic;
6
7 public class SortByTopicId implements Comparator<LGTopic>{
8
9 public int compare(LGTopic o1, LGTopic o2) {
10 if(o1.getId() == null || o2.getId() == null){
11 return 1;
12 }
13 return o1.getId().compareTo(o2.getId());
14 }
15 }