Index: trunk/psphot/src/psphotWeightBias.c
===================================================================
--- trunk/psphot/src/psphotWeightBias.c	(revision 12792)
+++ trunk/psphot/src/psphotWeightBias.c	(revision 13006)
@@ -15,5 +15,5 @@
 
     // source analysis is done in S/N order (brightest first)
-    sources = psArraySort (sources, psphotSortBySN);
+    sources = psArraySort (sources, pmSourceSortBySN);
 
     // set fitting method to use non-poisson errors (local sky error)
