0

In my view want to sort the result according to the work rank field value and in content value are in numeric number . its not showing result according to ascending order . its showing random .

How can sort the result according to the work rank field value in asc order?

enter image description here

7
  • Is it definitely “random”? As in different every time you refresh the page?
    – Clive
    Jun 29, 2018 at 10:38
  • no , its fix but position is not according to the field value Jun 29, 2018 at 10:41
  • work rank field type is text(plain) . can this be the issue ?if Yes How can I change the field type value to number Jun 29, 2018 at 10:45
  • Yeah I was going to say - a text field is sorted alphanumerically, not numerically. 10 comes before 2 and all that. You can't just change a field type, you'll have to write a migration in an update hook
    – Clive
    Jun 29, 2018 at 11:00
  • drupal.stackexchange.com/questions/208946/… this link will work for me ? Jun 29, 2018 at 11:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.