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

View File

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