MCPcopy Create free account
hub / github.com/diyhi/bbs / compare

Method compare

src/main/java/cms/component/topic/TagComponent.java:79–93  ·  view source on GitHub ↗
(Tag o1, Tag o2)

Source from the content-addressed store, hash-verified

77 private void tagItemSort(List<Tag> tagList){
78 Collections.sort(tagList, new Comparator<Tag>(){
79 @Override
80 public int compare(Tag o1, Tag o2) {
81 long s_1 = o1.getSort();
82 long s_2 = o2.getSort();
83 if(s_1 <s_2){
84 return 1;
85
86 }else{
87 if(s_1 == s_2){
88 return 0;
89 }else{
90 return -1;
91 }
92 }
93 }
94 });
95 }
96}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected