diff --git a/test/alias-testunsorted-expect.xml b/test/alias-testunsorted-expect.xml
new file mode 100644
index 0000000..f271655
--- /dev/null
+++ b/test/alias-testunsorted-expect.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+ PRIVATE_NETWORKS
+ network
+ 1
+ opn alias PRIVATE_NETWORKS
+ 10.0.0.0/8
+172.16.0.0/12
+192.168.0.0/16
+
+
+ HTTP_TCP
+ port
+ 1
+ tcp http(s) ports
+ 80
+443
+8443
+
+
+
+
+
+
diff --git a/test/alias-testunsorted.xml b/test/alias-testunsorted.xml
new file mode 100644
index 0000000..00c1320
--- /dev/null
+++ b/test/alias-testunsorted.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+ PRIVATE_NETWORKS
+ network
+ 1
+ opn alias PRIVATE_NETWORKS
+ 10.0.0.0/8
+172.16.0.0/12
+192.168.0.0/16
+
+
+ HTTP_TCP
+ port
+ 1
+ tcp http(s) ports
+ 80
+443
+
+
+
+
+
+
diff --git a/test/alias-testunsorted.yml b/test/alias-testunsorted.yml
new file mode 100644
index 0000000..9cb6733
--- /dev/null
+++ b/test/alias-testunsorted.yml
@@ -0,0 +1,26 @@
+---
+
+opn_alias:
+ - uuid: b9ca4f72-ab35-5c48-8460-d71a7ef50184
+ settings:
+ - key: name
+ value: PRIVATE_NETWORKS
+ - key: content
+ list:
+ - 172.16.0.0/12
+ - 192.168.0.0/16
+ - 10.0.0.0/8
+ - key: content
+ list:
+ - 192.168.0.0/16
+ - 172.16.0.0/12
+ - 10.0.0.0/8
+ - uuid: b948ceaa-1ca9-5009-bad1-04660a926f87
+ settings:
+ - key: name
+ value: HTTP_TCP
+ - key: content
+ list:
+ - 80
+ - 443
+ - 8443