I am using java Comparator which need sorting based on below conditions -
Object1 - name subName
Object2 - name subName
Compare Object1 & Object2 based on below condition-
condition 1: if name != subName -- push it up while sorting
condition 2: if name == subName -- push it down while sorting
Can anyone help, how to implement this?