mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-06 17:15:38 -08:00
sort by port #949
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user