diff --git a/magick/list.h b/magick/list.h
index 8134a3e..aaac0d9 100644
--- a/magick/list.h
+++ b/magick/list.h
@@ -40,12 +40,12 @@
   *SplitImageList(Image *),
   *SyncNextImageInList(const Image *);
 
-extern MagickExport ssize_t
-  GetImageIndexInList(const Image *);
-
 extern MagickExport size_t
   GetImageListLength(const Image *);
 
+extern MagickExport ssize_t
+  GetImageIndexInList(const Image *);
+
 extern MagickExport void
   AppendImageToList(Image **,const Image *),
   DeleteImageFromList(Image **),