Skip to:
Content
Pages
Categories
Search
Top
Bottom

Order by numeric value


  • njones7
    Participant

    @njones7

    Wordpress version = 4.8.1
    Buddypress version = 2.9.1

    How do i go about ordering by a numerical value? I am using BP profile search to add in a order by field using a shortcode, however the field being ordered (pricing) is only ordering by the first digit and not the digits as a whole

    e.g Having the values of 40,20,70,70,100
    Instead of ordering like 20,40,70,70,100 it is putting the 100 first because 1 comes before 2,3,4 etc

  • You must be logged in to reply to this topic.
Skip to toolbar