Bug fixes, new panel
[pierogi] / pirdeviceinfo.cpp
diff --git a/pirdeviceinfo.cpp b/pirdeviceinfo.cpp
new file mode 100644 (file)
index 0000000..1dd93f5
--- /dev/null
@@ -0,0 +1,14 @@
+#include "pirdeviceinfo.h"
+
+#include <string.h>
+
+bool operator< (
+  const DeviceInfo &a,
+  const DeviceInfo &b)
+{
+  if (a.make < b.make) return true;
+
+  if ((a.make == b.make) && (strcmp(a.model, b.model) < 0)) return true;
+
+  return false;
+}