18 lines
1.1 KiB
Java
18 lines
1.1 KiB
Java
|
package com.discord.widgets.servers.settings.members;
|
||
|
|
||
|
import com.discord.widgets.servers.settings.members.WidgetServerSettingsMembersModel;
|
||
|
import d0.g0.t;
|
||
|
import d0.z.d.m;
|
||
|
import java.util.Comparator;
|
||
|
/* compiled from: WidgetServerSettingsMembersModel.kt */
|
||
|
public final class WidgetServerSettingsMembersModel$Companion$sortMembersComparator$1<T> implements Comparator<WidgetServerSettingsMembersModel.MemberItem> {
|
||
|
public static final WidgetServerSettingsMembersModel$Companion$sortMembersComparator$1 INSTANCE = new WidgetServerSettingsMembersModel$Companion$sortMembersComparator$1();
|
||
|
|
||
|
public final int compare(WidgetServerSettingsMembersModel.MemberItem memberItem, WidgetServerSettingsMembersModel.MemberItem memberItem2) {
|
||
|
m.checkNotNullParameter(memberItem, "member1");
|
||
|
m.checkNotNullParameter(memberItem2, "member2");
|
||
|
int compareTo = t.compareTo(memberItem.getUserDisplayName(), memberItem2.getUserDisplayName(), true);
|
||
|
return compareTo != 0 ? compareTo : (memberItem.getUser().getId() > memberItem2.getUser().getId() ? 1 : (memberItem.getUser().getId() == memberItem2.getUser().getId() ? 0 : -1));
|
||
|
}
|
||
|
}
|