Job.cpp
/*--- function CompareMix -----------------------------------
 *  Higher priority jobs come before lower priority.
 *  For two jobs at same priority, lower mix number comes first.
 */
function CompareMix
Higher priority jobs come before lower priority.
For two jobs at same priority, lower mix number comes first.
function CompareMix Higher priority jobs come before lower priority . For two jobs at same priority lower mix number comes first .
int CompareMix(DWORD mix1, DWORD mix2) {
   int retval=0;
   if(Mix[mix1].m_priority > Mix[mix2].m_priority) {
      retval = -1;
   } else if(Mix[mix1].m_priority < Mix[mix2].m_priority) {
      retval = 1;
   } else if(Mix[mix1].m_mixnum < Mix[mix2].m_mixnum) {
      retval = -1;
   } else if(Mix[mix1].m_mixnum < Mix[mix2].m_mixnum) {
      retval = 1;
   } 
   return retval;
}
int CompareMix ( DWORD mix1 , DWORD mix2 ) { int retval = 0 ; if ( Mix [ mix1 ] . m_priority > Mix [ mix2 ] . m_priority ) { retval = -1 ; } else if ( Mix [ mix1 ] . m_priority < Mix [ mix2 ] . m_priority ) { retval = 1 ; } else if ( Mix [ mix1 ] . m_mixnum < Mix [ mix2 ] . m_mixnum ) { retval = -1 ; } else if ( Mix [ mix1 ] . m_mixnum < Mix [ mix2 ] . m_mixnum ) { retval = 1 ; } return retval ; }
function CompareMix
  Higher priority jobs come before lower priority.
function CompareMix Higher priority jobs come before lower priority .