Device list function

Device list function

Hi,

      I would like to know the way that the devices are listed out in the array. Is the devices that is obtained from the Resources.devices.list()listed by the time it is created or by the relevant tags?

      and is there away to filter their data after obtaining it through this way? :
    for(const device of array_devices){
      const vari  = await Resources.devices.getDeviceData(device.id,{
        variables: <variable>,
        qty: quantity,
        start_date: "2024-06-09T16:00",
        end_date: end
      });
      device_result.push(vari);
    }