diff --git a/lib/system-exports.js b/lib/system-exports.js
index 0357fde..ae240a5 100644
--- a/lib/system-exports.js
+++ b/lib/system-exports.js
@@ -43,4 +43,5 @@ module.exports = async (systemName) => {
return Object.values(exportOrdersGroupedByCommodity)
.sort((a, b) => a.name.localeCompare(b.name))
+ .sort((a, b) => a.category.localeCompare(b.category))
}
diff --git a/lib/system-imports.js b/lib/system-imports.js
index bbe82c8..148d16e 100644
--- a/lib/system-imports.js
+++ b/lib/system-imports.js
@@ -49,5 +49,7 @@ module.exports = async (systemName) => {
})
return Object.values(importOrdersGroupedByCommodity)
+ .filter(c => c.totalDemand)
.sort((a, b) => a.name.localeCompare(b.name))
+ .sort((a, b) => a.category.localeCompare(b.category))
}
diff --git a/package.json b/package.json
index 441b018..d48483f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "ardent-www",
- "version": "0.69.0",
+ "version": "0.70.0",
"description": "Ardent Industry",
"main": "index.js",
"scripts": {
diff --git a/pages/system/[system-name]/index.js b/pages/system/[system-name]/index.js
index f2f1e7f..55e51b5 100644
--- a/pages/system/[system-name]/index.js
+++ b/pages/system/[system-name]/index.js
@@ -419,7 +419,10 @@ export default () => {
render: (v, r) =>
<>
{v}
- {r.importOrders.length === 1 ? '1 importer ' : `${r.importOrders.length} importers`}
+