Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

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 StackOverflowStackOverflow, 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?

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?

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?

edited tags
Link
Kevin Montrose
  • 18.7k
  • 6
  • 35
  • 62
more information
Source Link
Dave DeLong
  • 5.3k
  • 1
  • 17
  • 12

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?

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?

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?

Source Link
Dave DeLong
  • 5.3k
  • 1
  • 17
  • 12
Loading