Change to List - for ordering
Make DeviceType and SensorType Comparable
Add a sample implementation for reverse lookup