Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting number fields in descending order. Null values appear first? That's weird

Jim Hathaway
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 8, 2025

I have a number field that I want to user order by desc in a JQL query.

Most records are populated with a number but some are empty. the search results appear to sort the empty/null values first, then high numbers to low numbers.

This is counterintuitive. Empty or Null values should be in the same place as Zero or below the lowest number, not at the top.

Can I fix this with some clever query or is it not working the way I expect it to and Atlassian need to fix it.?

1 answer

0 votes
John Funk
Community Champion
August 8, 2025

Hi Jim - Welcome to the Atlassian Community!

Any reason to not default the field to 0?

Do you need to see the work items without a value? You could exclude those in the query. 

Not sure why it is showing the null values first. Does DESC put them at the end? 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events