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

  • Is it definitely “random”? As in different every time you refresh the page? – Clive Jun 29 '18 at 10:38
  • no , its fix but position is not according to the field value – Manmeet Khurana Jun 29 '18 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 – Manmeet Khurana Jun 29 '18 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 '18 at 11:00
  • drupal.stackexchange.com/questions/208946/… this link will work for me ? – Manmeet Khurana Jun 29 '18 at 11:03

Your Answer

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

Browse other questions tagged or ask your own question.