Commit 4e140c0a authored by A. Wilcox's avatar A. Wilcox

eBay: Sort orders by EndTimeDescending.

So, we don't need to reverse the order in iUI.  Fix that.
parent 07b336ce
......@@ -67,7 +67,7 @@ libAPI AuPagedResult<AuOrder *> *eBaySite::getSoldTransactions(int items_per_pag
list_node = xmlNewNode(NULL, BAD_CAST "SoldList");
xmlNewChild(list_node, NULL, BAD_CAST "DurationInDays", BAD_CAST "60");
xmlNewChild(list_node, NULL, BAD_CAST "Include", BAD_CAST "true");
xmlNewChild(list_node, NULL, BAD_CAST "Sort", BAD_CAST "EndTime");
xmlNewChild(list_node, NULL, BAD_CAST "Sort", BAD_CAST "EndTimeDescending");
// Send it!
......
......@@ -105,7 +105,7 @@
{
[spinny stopAnimating];
totalEntries = [[data objectForKey:@"totalResults"] unsignedIntegerValue];
[orderArray addObjectsFromArray:[[[data objectForKey:@"items"] reverseObjectEnumerator] allObjects]];
[orderArray addObjectsFromArray:[data objectForKey:@"items"]];
break;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment