bool operator <(covariant Device other) { if (type == other.type) { return false; } return sizes[type]!.min < sizes[other.type]!.min; }