From 327532f92ad7f6c9ea74894d071b91f1d67748f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Laval?= Date: Wed, 8 May 2013 16:52:43 -0400 Subject: [macdoc] Use the same item selection flawed logic than apple-doc-wizard Both sides were doing selection incorrectly by simply getting, respectively, the first and the last item. To be accurate, we need to sort them according to the field. To stay compatible with the released version of XamMac and Xam.iOS, simply reuse their style. --- AppleDocHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppleDocHandler.cs b/AppleDocHandler.cs index a034bc1..4917cb2 100644 --- a/AppleDocHandler.cs +++ b/AppleDocHandler.cs @@ -58,7 +58,7 @@ namespace macdoc // This method transforms the Atom XML data into a POCO for the the most recent item of the feed AppleDocInformation GetLatestAppleDocInformation (XDocument feed) { - var latestEntry = feed.Descendants (atomNamespace + "entry").LastOrDefault (); + var latestEntry = feed.Descendants (atomNamespace + "entry").FirstOrDefault (); if (latestEntry == null) return null; -- cgit v1.2.3