I want to get a list of the last builds of my TFS. The API in general works well - but I don't understand the working of the "$top"-Parameter.
If I use a simple API call without the top-Parameter:
https://mytfs/project/_apis/build/builds?buildQueryOrder=finishTimeAscending
I get the max amount of 1000 results, correctly ordered with the newest on top/first.
If I add the $top-Parameter:
https://mytfs/project/_apis/build/builds?$top=10&buildQueryOrder=finishTimeAscending
I get 10 results - but not the first 10 from the larger list - but 10 random results (but always the same 10 - thus not really random). But this are not the newest 10 or the oldest 10 - just 10 out of 1000.
Am I understanding the $top-Parameter wrong? Or is this a bug in the TFS API?