madpack install-check: Test SQL file are now executed in alphabetical order.
diff --git a/src/madpack/madpack.py b/src/madpack/madpack.py
index c78be92..a87ea6e 100755
--- a/src/madpack/madpack.py
+++ b/src/madpack/madpack.py
@@ -925,7 +925,7 @@
     
             # Loop through all test SQL files for this module
             sql_files = maddir_mod + '/' + module + '/test/*.sql_in'
-            for sqlfile in glob.glob(sql_files):
+            for sqlfile in sorted(glob.glob(sql_files)):
             
                 result = 'PASS'
 
diff --git a/src/ports/postgres/modules/regress/test/linear.sql_in b/src/ports/postgres/modules/regress/test/linear.sql_in
index a719a31..6806c14 100644
--- a/src/ports/postgres/modules/regress/test/linear.sql_in
+++ b/src/ports/postgres/modules/regress/test/linear.sql_in
@@ -10,7 +10,7 @@
 ---------------------------------------------------------------------------
 -- Setup: 
 ---------------------------------------------------------------------------
-CREATE FUNCTION install_test() RETURNS VOID AS $$ 
+CREATE OR REPLACE FUNCTION install_test() RETURNS VOID AS $$ 
 declare
     lr MADLIB_SCHEMA.linregr_result;