Title: Does sort by Query time work?
Last modified: August 31, 2016

---

# Does sort by Query time work?

 *  Resolved [xberg](https://wordpress.org/support/users/xberg/)
 * (@xberg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/does-sort-by-query-time-work/)
 * Hi John,
    Wonderful plugin!
 * Perhaps a small bug? Unless I’m missing something, the sort by time for queries
   does not work (the up/down arrows). As the results are certainly not sorted by
   the value in that column.
    Here’s a screenshot of a sort DESC: [http://prntscr.com/bdrj5y](http://prntscr.com/bdrj5y)
 * No big deal 🙂
    Good luck
 * [https://wordpress.org/plugins/query-monitor/](https://wordpress.org/plugins/query-monitor/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [9 years, 11 months ago](https://wordpress.org/support/topic/does-sort-by-query-time-work/#post-7458184)
 * Thanks for the message. This is most likely due to the fact that your language
   uses a comma (instead of a period) for the decimal point symbol.
 * I’ll look into why sorting doesn’t work in this situation.
 *  [crstauf](https://wordpress.org/support/users/crstauf/)
 * (@crstauf)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/does-sort-by-query-time-work/#post-7458263)
 * The script used to do the sorting uses the JS function `parseFloat`, which according
   to the [article on W3 Schools](http://www.w3schools.com/jsref/jsref_parsefloat.asp):
 * > “This function determines if the first character in the specified string is
   > a number. If it is, it parses the string until it reaches the end of the number,
   > and returns the number as a number, not as a string.”
 * JS does not consider “,” to be a valid part of a number, and so it stops as soon
   as it encounters that character, and returns the numbers up to that point.
 * CodePen demonstration: [http://codepen.io/crstauf/pen/xOJXAP/](http://codepen.io/crstauf/pen/xOJXAP/)
 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [9 years, 9 months ago](https://wordpress.org/support/topic/does-sort-by-query-time-work/#post-7458265)
 * Thanks to [@crstauf](https://wordpress.org/support/users/crstauf/), this will
   be fixed in the next version of QM.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Does sort by Query time work?’ is closed to new replies.

 * ![](https://ps.w.org/query-monitor/assets/icon.svg?rev=2994095)
 * [Query Monitor](https://wordpress.org/plugins/query-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/query-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-monitor/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/does-sort-by-query-time-work/#post-7458265)
 * Status: resolved