Hi Alexandre,
You were nearly there. Please refer to this blog article by Sean G. Wright: it walks through the example of making another Kentico system field (documentcategories) facetable (IsFacetable). So literally what you need to do is change the field name in the code example to documentpublishfrom and apply IsSortable instead.