sort by port #949

This commit is contained in:
jokob-sk
2025-01-11 07:54:51 +11:00
parent ea2e8459b5
commit 711e0012cb
2 changed files with 4 additions and 4 deletions

View File

@@ -488,7 +488,7 @@
return; return;
} }
sortTopologyBy = createArray(getSetting("UI_TOPOLOGY_SORT")) orderTopologyBy = createArray(getSetting("UI_TOPOLOGY_ORDER"))
devicesListnew = rawData["data"].map(item => { devicesListnew = rawData["data"].map(item => {
return { return {
@@ -509,7 +509,7 @@
return isNaN(parsed) ? Infinity : parsed; return isNaN(parsed) ? Infinity : parsed;
}; };
switch (sortTopologyBy[0]) { switch (orderTopologyBy[0]) {
case "Name": case "Name":
// First sort by name alphabetically // First sort by name alphabetically
const nameCompare = a.name.localeCompare(b.name); const nameCompare = a.name.localeCompare(b.name);

View File

@@ -495,7 +495,7 @@
] ]
}, },
{ {
"function": "TOPOLOGY_SORT", "function": "TOPOLOGY_ORDER",
"type": { "type": {
"dataType": "array", "dataType": "array",
"elements": [ "elements": [
@@ -512,7 +512,7 @@
"name": [ "name": [
{ {
"language_code": "en_us", "language_code": "en_us",
"string": "Sort by in Network" "string": "Order by in Network"
} }
], ],
"description": [ "description": [