Modified the .lib and .lef library file generator scripts so that
they follow glob.glob() with natural_sort() (taken from the
sort_pdkfiles.py script).  Probably the real solution here is to
not remove filelist.txt as early as it is removed in foundry_install.py.
As written, the file no longer exists when certain libraries are
generated as a result of being created from scratch by magic instead
of just collected and compiled from vendor sources.  Probably the
list of cell names in filelist.txt is still valid at that point.
diff --git a/VERSION b/VERSION
index 3b79cbb..3b931e1 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.272
+1.0.273
diff --git a/common/create_lef_library.py b/common/create_lef_library.py
index 72a5025..6c9899c 100755
--- a/common/create_lef_library.py
+++ b/common/create_lef_library.py
@@ -13,6 +13,7 @@
 import os
 import glob
 import fnmatch
+from sort_pdkfiles import natural_sort
 
 #----------------------------------------------------------------------------
 
@@ -53,6 +54,7 @@
                 llist.append(destlibdir + '/' + rfile)
     else:
         llist = glob.glob(destlibdir + '/*.lef')
+        llist = natural_sort(llist)
 
     if alllibname in llist:
         llist.remove(alllibname)
diff --git a/common/create_lib_library.py b/common/create_lib_library.py
index 247f541..ccb58bf 100755
--- a/common/create_lib_library.py
+++ b/common/create_lib_library.py
@@ -13,6 +13,7 @@
 import os
 import glob
 import fnmatch
+from sort_pdkfiles import natural_sort
 
 #----------------------------------------------------------------------------
 
@@ -60,6 +61,7 @@
                 llist.append(destlibdir + '/' + rfile)
     else:
         llist = glob.glob(destlibdir + '/*.lib')
+        llist = natural_sort(llist)
 
     # Create exclude list with glob-style matching using fnmatch
     if len(llist) > 0: