Fixed server sorting to use friendly name instead of display string.
This commit is contained in:
parent
8186a48d1e
commit
de8cc9e435
1 changed files with 2 additions and 1 deletions
|
@ -126,7 +126,8 @@ public class DeviceArrayAdapter extends ArrayAdapter<Device<?, ?, ?>>
|
|||
@Override
|
||||
public int compare(Device<?, ?, ?> lhs,
|
||||
Device<?, ?, ?> rhs) {
|
||||
return lhs.getDisplayString().compareTo(rhs.getDisplayString());
|
||||
return lhs.getDetails().getFriendlyName()
|
||||
.compareTo(rhs.getDetails().getFriendlyName());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Reference in a new issue