code: def getSortedTrackedDeviceIndicesOfClass(self, eTrackedDeviceClass, unTrackedDeviceIndexArrayCount, unRelativeToTrackedDeviceIndex):
          
  
          fn = self.function_table.getSortedTrackedDeviceIndicesOfClass
          punTrackedDeviceIndexArray = TrackedDeviceIndex_t()
          result = fn(eTrackedDeviceClass, byref(punTrackedDeviceIndexArray), unTrackedDeviceIndexArrayCount, unRelativeToTrackedDeviceIndex)
          return result, punTrackedDeviceIndexArray
docs: Get a sorted array of device indices of a given class of tracked devices (e.g. controllers).  Devices are sorted right to left
          relative to the specified tracked device (default: hmd -- pass in -1 for absolute tracking space).  Returns the number of devices
          in the list, or the size of the array needed if not large enough.