diff --git a/autoload/front/factory/class.ShopTransport.php b/autoload/front/factory/class.ShopTransport.php
index daf0b52..f708776 100644
--- a/autoload/front/factory/class.ShopTransport.php
+++ b/autoload/front/factory/class.ShopTransport.php
@@ -31,7 +31,7 @@ class ShopTransport
. 'FROM '
. 'pp_shop_transports AS pst '
. 'WHERE '
- . 'status = 1' ) -> fetchAll( \PDO::FETCH_ASSOC );
+ . 'status = 1 ORDER BY o ASC' ) -> fetchAll( \PDO::FETCH_ASSOC );
if ( is_array( $results ) and !empty( $results ) ) foreach ( $results as $row )
$transports_tmp[] = $row;
diff --git a/autoload/shop/class.Transport.php b/autoload/shop/class.Transport.php
index 03b8ced..aa71607 100644
--- a/autoload/shop/class.Transport.php
+++ b/autoload/shop/class.Transport.php
@@ -6,7 +6,7 @@ class Transport implements \ArrayAccess
static public function transport_list()
{
global $mdb;
- return $mdb -> select( 'pp_shop_transports', '*', [ 'status' => 1 ] );
+ return $mdb -> select( 'pp_shop_transports', '*', [ 'status' => 1 ], [ 'ORDER' => [ 'o' => 'ASC' ] ] );
}
public function offsetExists( $offset )
diff --git a/updates/0.20/ver_0.224.zip b/updates/0.20/ver_0.224.zip
new file mode 100644
index 0000000..e49cd09
Binary files /dev/null and b/updates/0.20/ver_0.224.zip differ
diff --git a/updates/0.20/ver_0.224_sql.txt b/updates/0.20/ver_0.224_sql.txt
new file mode 100644
index 0000000..719b693
--- /dev/null
+++ b/updates/0.20/ver_0.224_sql.txt
@@ -0,0 +1,6 @@
+ALTER TABLE `pp_shop_transports` ADD COLUMN `o` INT(11) NOT NULL DEFAULT '0' AFTER `delivery_free`;
+UPDATE `pp_shop_transports` SET `o`=1 WHERE `id`=9;
+UPDATE `pp_shop_transports` SET `o`=2 WHERE `id`=2;
+UPDATE `pp_shop_transports` SET `o`=3 WHERE `id`=4;
+UPDATE `pp_shop_transports` SET `o`=4 WHERE `id`=5;
+UPDATE `pp_shop_transports` SET `o`=5 WHERE `id`=3;
\ No newline at end of file
diff --git a/updates/changelog.php b/updates/changelog.php
index 7233035..5867774 100644
--- a/updates/changelog.php
+++ b/updates/changelog.php
@@ -1,3 +1,6 @@
+ver. 0.224
+- NEW - sortowanie form dostawy
+