Title: Sort by integer not string
Last modified: August 18, 2020

---

# Sort by integer not string

 *  [mrbrightside1984](https://wordpress.org/support/users/mrbrightside1984/)
 * (@mrbrightside1984)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/sort-by-integer-not-string/)
 * Hi! You have a great plugin here that has so many options and uses for displaying
   data.
    I am having a bit of an issue getting it to display scores correctly in
   order from greatest to least. Here is my site: [https://faucetgamers.com/games/frogger-high-scores](https://faucetgamers.com/games/frogger-high-scores)
 * Take notice of Diego who has the highest score is on the bottom.
 * It seems to be recognizing the number as a “String” rather than an “Int” and 
   so sorting it based on length. I am near 100% certain that the form has a number
   submission being taken in from contact form 7 submission form. The sort though
   is treating it as a string.
 * Is there anything I can do to change this?
    Here is my shortcode that I’m using
   to display this:
 * [cfdb-datatable form=”High Score Frogger” class=”datatable” show=”User_Login,
   score,Submitted” filter=”_ctc_status=Done” limit=”20″ orderby=”score DESC” headers
   =”score=Score,Submitted=Date Submitted,User_Login=Username”]
 * Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsort-by-integer-not-string%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Sort by integer not string’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contactic_a6b3bf.svg)
 * [Contact Form 7 Database + | CFDB+](https://wordpress.org/plugins/contactic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contactic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contactic/)
 * [Active Topics](https://wordpress.org/support/plugin/contactic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contactic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contactic/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mrbrightside1984](https://wordpress.org/support/users/mrbrightside1984/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/sort-by-integer-not-string/)
 * Status: not resolved