Wikidata:Requests for comment/How to stop WDQ from jumbling up the results

From Wikidata
Jump to navigation Jump to search

I have a lsit of 400+ species names (liverworts), in Latin, and I'm using WD Query Service to generate their item codes. I need to keep them in order. see here

#Look up q-codes based on English label
SELECT ?lab ?item WHERE {
 ?item rdfs:label ?lab .
 MINUS {?item wdt:P31 wd:Q4167836 } . # no category items
 VALUES ?lab {"Anthoceros punctatus"@en
"Anthoceros agrestis"@en
"Phaeoceros laevis"@en
"Phaeoceros carolinianus"@en
"Haplomitrium hookeri"@en 
 } .
}

However, the results are in a different order to the input. There's nothing on Wikidata:SPARQL query service/Wikidata Query Help/Result Views. Keeping the results in the same order, or alphabetized would be good. Any help please? Llywelyn2000 (talk) 18:29, 9 January 2019 (UTC) [reply]

An editor has requested the community to provide input on "How to stop WDQ from jumbling up the results" via the Requests for comment (RFC) process. This is the discussion page regarding the issue.

If you have an opinion regarding this issue, feel free to comment below. Thank you!