graphql-community icon indicating copy to clipboard operation
graphql-community copied to clipboard

User: orderBy rep or followers desc shows null first

Open lorensr opened this issue 8 years ago • 1 comments

image

https://graphql.communitygraph.org/graphiql/?query=%7B%0A%20%20User(first%3A10%2C%20orderBy%3Areputation_desc)%20%7B%0A%20%20%20%20name%0A%20%20%20%20type%0A%20%20%20%20reputation%0A%20%20%20%20followers%0A%20%20%7D%0A%7D

lorensr avatar May 20 '17 01:05 lorensr

@jexp I believe the problem is that the sorting algorithm treats nulls as higher than numbers. There are numbers for some users currently, they're just far down the list, and the point at which they start keeps changing (I believe because new data is being added regularly?)

lorensr avatar May 31 '17 03:05 lorensr