diff --git a/buildout/tests/assertSoftware.py b/buildout/tests/assertSoftware.py
index d26c18f1c75c519111f7e7af33bccea007265793..c87bb2ca5cf36e62d9d5920510a309d4c48f992e 100644
--- a/buildout/tests/assertSoftware.py
+++ b/buildout/tests/assertSoftware.py
@@ -1603,16 +1603,16 @@ class AssertImagemagick(AssertSoftwareMixin):
       'libbz2',
       'libc',
       'libdl',
-      'libm',
       'libfreetype',
+      'libm',
       'libpthread',
       'libz',
       ]
 
   core_rpath_list = [
-      'zlib',
       'bzip2',
       'freetype',
+      'zlib',
       ]
 
   lib_lib_list = core_lib_list + [