@@ -202,11 +202,11 @@ class RecruitCRMJobsContainer extends React.Component {
202202 }
203203 // Sort controlled by sortBy state
204204 jobsToDisplay = jobsToDisplay . sort ( ( a , b ) => {
205- // sort tags first no matter the sortBy
206- const tagA = getCustomField ( a . custom_fields , 'Job Tag ' ) ;
207- const tagB = getCustomField ( b . custom_fields , 'Job Tag ' ) ;
208- if ( tagB !== 'n/a' && tagA === 'n/a' ) return Number . MAX_VALUE ;
209- if ( tagB === 'n/a' && tagA !== 'n/a' ) return - Number . MIN_VALUE ;
205+ // sort featured gigs first no matter the sortBy
206+ const featuredA = getCustomField ( a . custom_fields , 'Featured ' ) ;
207+ const featuredB = getCustomField ( b . custom_fields , 'Featured ' ) ;
208+ if ( featuredB !== 'n/a' && featuredA === 'n/a' ) return Number . MAX_VALUE ;
209+ if ( featuredB === 'n/a' && featuredA !== 'n/a' ) return - Number . MIN_VALUE ;
210210 return new Date ( b [ sortBy ] ) - new Date ( a [ sortBy ] ) ;
211211 } ) ;
212212 // Calc pages
@@ -248,6 +248,15 @@ class RecruitCRMJobsContainer extends React.Component {
248248 < div styleName = "location" > < IconBlackLocation /> { hjob . country } </ div >
249249 < h5 styleName = "job-title" > { hjob . name } </ h5 >
250250 < div styleName = "job-money" > ${ hjob . min_annual_salary } - { hjob . max_annual_salary } / { getSalaryType ( hjob . salary_type ) } </ div >
251+ {
252+ getCustomField ( hjob . custom_fields , 'Hotlist excerpt' ) !== 'n/a' ? (
253+ < div styleName = "job-desc" >
254+ {
255+ `${ getCustomField ( hjob . custom_fields , 'Hotlist excerpt' ) . substring ( 0 , CONTENT_PREVIEW_LENGTH ) } ${ getCustomField ( hjob . custom_fields , 'Hotlist excerpt' ) . length > CONTENT_PREVIEW_LENGTH ? '...' : '' } `
256+ }
257+ </ div >
258+ ) : null
259+ }
251260 </ Link >
252261 ) : (
253262 < div styleName = { `hotlist-item-${ indx + 1 } ` } to = { `${ config . GIGS_PAGES_PATH } /${ hjob . slug } ` } key = { `hotlist-item-${ indx + 1 } ` } >
0 commit comments