diff options
Diffstat (limited to 'modern/src/reports')
-rw-r--r-- | modern/src/reports/components/ReportFilter.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/components/ReportFilter.js b/modern/src/reports/components/ReportFilter.js index d223b086..75c9d43d 100644 --- a/modern/src/reports/components/ReportFilter.js +++ b/modern/src/reports/components/ReportFilter.js @@ -80,7 +80,7 @@ const ReportFilter = ({ children, handleSubmit, showOnly, ignoreDevice, multiDev onChange={(e) => (multiDevice ? setDeviceIds(e.target.value) : setDeviceId(e.target.value))} multiple={multiDevice} > - {Object.values(devices).map((device) => ( + {Object.values(devices).sort((a, b) => a.name.localeCompare(b.name)).map((device) => ( <MenuItem key={device.id} value={device.id}>{device.name}</MenuItem> ))} </Select> @@ -97,7 +97,7 @@ const ReportFilter = ({ children, handleSubmit, showOnly, ignoreDevice, multiDev onChange={(e) => setGroupIds(e.target.value)} multiple > - {Object.values(groups).map((group) => ( + {Object.values(groups).sort((a, b) => a.name.localeCompare(b.name)).map((group) => ( <MenuItem key={group.id} value={group.id}>{group.name}</MenuItem> ))} </Select> |