I am using views 3 in D7 and have added custom field of percentage on students result listing. I want to sort on the percentage field, how can I add sort on custom field?

Thanks for your help.

  • Any solutions?! – Ehsan Mar 2 '15 at 15:49

I would go with using views php, they have a sorting option on there.

| improve this answer | |

Your custom field is added after the query is performed by views, and a the sort is done as part of the query, therefore your sort doesn't know about your custom field.

I'd probably try to store the percentage in a field on the content type and then you'll be able to sort using the normal views sort handlers.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.