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