diff --git a/src/main/java/com/github/nutomic/controldlna/utility/DeviceArrayAdapter.java b/src/main/java/com/github/nutomic/controldlna/utility/DeviceArrayAdapter.java index 4f660d2..cc12c1a 100644 --- a/src/main/java/com/github/nutomic/controldlna/utility/DeviceArrayAdapter.java +++ b/src/main/java/com/github/nutomic/controldlna/utility/DeviceArrayAdapter.java @@ -126,7 +126,8 @@ public class DeviceArrayAdapter extends ArrayAdapter> @Override public int compare(Device lhs, Device rhs) { - return lhs.getDisplayString().compareTo(rhs.getDisplayString()); + return lhs.getDetails().getFriendlyName() + .compareTo(rhs.getDetails().getFriendlyName()); } }); }