Mercurial > hg > LGServices
view src/main/java/de/mpiwg/web/topicList/SortByTopicId.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 | 90d5e86c157d |
children |
line wrap: on
line source
package de.mpiwg.web.topicList; import java.util.Comparator; import de.mpiwg.gazetteer.bo.LGTopic; public class SortByTopicId implements Comparator<LGTopic>{ public int compare(LGTopic o1, LGTopic o2) { if(o1.getId() == null || o2.getId() == null){ return 1; } return o1.getId().compareTo(o2.getId()); } }