he api response format loses the sorting order.
This is because "results" is returned as an object instead of as a list.
Currently the response has this structure
{"query":
{"printrequests":[ {"label":"","typeid":"_wpg","mode":2}, {"label":"Allele1","typeid":"_str","mode":1}, {"label":"Allele2","typeid":"_str","mode":1}, {"label":"Magnitude","typeid":"_num","mode":1}, {"label":"On chromosome","typeid":"_str","mode":1}], "results": { "Rs121964853(A;A)": {"printouts":{ "Allele1":["A"], "Allele2":["A"], "Magnitude":[4],"On chromosome":["1"] }, "fulltext":"Rs121964853(A;A)", "fullurl":"http:\/\/bots.snpedia.com\/index.php\/Rs121964853(A;A)" }, "Rs121909520(G;G)": {"printouts":{ "Allele1":["G"], "Allele2":["G"], "Magnitude":[4], "On chromosome"["1"] }, "fulltext":"Rs121909520(G;G)", "fullurl":"http:\/\/bots.snpedia.com\/index.php\/Rs121909520(G;G)"},
...
I think a more correct structure would be
{"query":
{"printrequests":[ {"label":"","typeid":"_wpg","mode":2}, {"label":"Allele1","typeid":"_str","mode":1}, {"label":"Allele2","typeid":"_str","mode":1}, {"label":"Magnitude","typeid":"_num","mode":1}, {"label":"On chromosome","typeid":"_str","mode":1}], "results": [ {"printouts":{ "Allele1":["A"], "Allele2":["A"], "Magnitude":[4],"On chromosome":["1"] }, "fulltext":"Rs121964853(A;A)", "fullurl":"http:\/\/bots.snpedia.com\/index.php\/Rs121964853(A;A)" }, {"printouts":{ "Allele1":["G"], "Allele2":["G"], "Magnitude":[4], "On chromosome"["1"] }, "fulltext":"Rs121909520(G;G)", "fullurl":"http:\/\/bots.snpedia.com\/index.php\/Rs121909520(G;G)"},
Version: REL1_20-branch
Severity: normal