Gravatar for jpdery@coveo.com

Question by jpdery, May 22, 2015 9:31 AM

Help configure JSUI sysmonth facet with custom sort

Why is my sort ignored with these 2 configs?

Config 1:

<div class="CoveoFacet"
data-title="Month"
data-field="@sysmonth"
data-number-of-values="5"
data-tab="All,People" 
data-sort-criteria="custom"
data-custom-sort="January,February,March,April,May,June,July,August,September,October,November,December"></div>

Config 2:

<div class="CoveoFacet"
data-title="Month"
data-field="@sysmonth"
data-number-of-values="5"
data-tab="All,People" 
data-sort-criteria="AlphaAscending"></div>
1 Reply
Gravatar for olamothe@coveo.com

Answer by olamothe, May 22, 2015 9:51 AM

In the index, facet value for @sysmonth are number.
data-custom-sort="01,02,03,04[…]" Should do the trick

Ask a question