Skip to main content
4 of 4
replaced http://stackoverflow.com/ with https://stackoverflow.com/

Inconsistent sort ordering on users?

I'm trying to get a list of the 10 oldest users. This is the endpoint I'm using:

http://api.stackoverflow.com/0.8/users?key=(key)&order=asc&sort=creation&pagesize=10&page=0

According to StackOverflow, they should be coming back as:

  • Community
  • Jarrod Dixon
  • Geoff Dalgas
  • Jeff Atwood
  • Jon Galloway
  • Joel Spolsky
  • Eggs McLaren
  • Kevin Dente
  • Sneakers O'Toole
  • Chris Jester-Young

However, the JSON I'm getting back has them in this order:

  • Community
  • Jeff Atwood
  • Geoff Dalgas
  • Jarrod Dixon
  • Joel Spolsky
  • Jon Galloway
  • Eggs McLaren
  • Kevin Dente
  • Sneakers O'Toole

What gives?

edit

a bit more information: Jarrod, Geoff, Jeff, Jon, and Joel all have the same creation date (1217514151, or Thu, 31 Jul 2008 14:22:31 GMT). So perhaps a better question is:

Is there defined behavior for sort ordering when two attributes have the same value?

Dave DeLong
  • 5.3k
  • 1
  • 17
  • 12