Index: trunk/psphot/src/psphotSourcePlots.c
===================================================================
--- trunk/psphot/src/psphotSourcePlots.c	(revision 12792)
+++ trunk/psphot/src/psphotSourcePlots.c	(revision 13006)
@@ -14,5 +14,5 @@
 
     // examine PSF sources in S/N order (brightest first)
-    sources = psArraySort (sources, psphotSortBySN);
+    sources = psArraySort (sources, pmSourceSortBySN);
 
     // counters to track the size of the image and area used in a row
