Sort criteria (in Orchard.Projections) are not getting the tokens dictionary or a tokenized state, unlike projection filters. In case a criterion needs those, it has to rebuild them from scratch.
I'll have a PR soon that passes the tokens dictionary along from the ProjectionManager, as well as the tokenized state (just like it's done for projection filters)
Sort criteria (in Orchard.Projections) are not getting the tokens dictionary or a tokenized state, unlike projection filters. In case a criterion needs those, it has to rebuild them from scratch.
I'll have a PR soon that passes the tokens dictionary along from the ProjectionManager, as well as the tokenized state (just like it's done for projection filters)